org.xwiki.crypto.pkix.params
Interface CertifiedPublicKey
- All Known Subinterfaces:
- X509CertifiedPublicKey
@Unstable
public interface CertifiedPublicKey
Certified binding of a principal to a public key.
- Since:
- 5.4
- Version:
- $Id: 79fdb652988b47bfc3f07cc0557c9e18ce3c6358 $
getIssuer
PrincipalIndentifier getIssuer()
- Returns:
- the name of the issuer of the certificate.
getSubject
PrincipalIndentifier getSubject()
- Returns:
- the name of the owner of the certified public key.
getPublicKeyParameters
PublicKeyParameters getPublicKeyParameters()
- Returns:
- the certified public key parameters.
isSignedBy
boolean isSignedBy(PublicKeyParameters publicKey)
throws GeneralSecurityException
- Check that the key has been certified by the private key associated with the given public key.
- Parameters:
publicKey
- the public key of the signer.
- Returns:
- true if the signature is verified.
- Throws:
GeneralSecurityException
- if the signing algorithm is unable to proceed properly.
getEncoded
byte[] getEncoded()
throws IOException
- Returns:
- the ASN.1 encoded form of this certificate.
- Throws:
IOException
- on encoding error.
Copyright © 2004–2014 XWiki. All rights reserved.