Package org.xwiki.crypto.pkix
Interface CertificateGenerator
-
public interface CertificateGenerator
Generator of certified public key.- Since:
- 5.4
- Version:
- $Id: cc0cf2c262f3ca309e3d4b96377c41c00199b095 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CertifiedPublicKey
generate(PrincipalIndentifier subjectName, PublicKeyParameters subject, CertificateParameters parameters)
Generate a new certificate.
-
-
-
Method Detail
-
generate
CertifiedPublicKey generate(PrincipalIndentifier subjectName, PublicKeyParameters subject, CertificateParameters parameters) throws IOException, GeneralSecurityException
Generate a new certificate.- Parameters:
subjectName
- the identifier of the public key owner.subject
- the public key to certify.parameters
- the subject parameters of the certificate (ie: subjectAltName extension)- Returns:
- a new certified public key.
- Throws:
IOException
- on encoding error.GeneralSecurityException
- if the signing algorithm is unable to proceed properly.
-
-