org.xwiki.crypto.pkix
Interface CertificateGenerator
@Unstable
public interface CertificateGenerator
Generator of certified public key.
- Since:
- 5.4
- Version:
- $Id: 7687a6493da6fd43137f6226d0d4db7d41baa156 $
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.
Copyright © 2004–2014 XWiki. All rights reserved.