public class CVCertificateBuilder extends Object
Constructor and Description |
---|
CVCertificateBuilder() |
Modifier and Type | Method and Description |
---|---|
static CardVerifiableCertificate |
createCertificate(PublicKey publicKey,
PrivateKey signerKey,
String algorithmName,
CVCPrincipal caRef,
CVCPrincipal holderRef,
CVCAuthorizationTemplate authZTemplate,
Date validFrom,
Date validTo,
String provider)
Card verifiable certificate factory method.
|
public static CardVerifiableCertificate createCertificate(PublicKey publicKey, PrivateKey signerKey, String algorithmName, CVCPrincipal caRef, CVCPrincipal holderRef, CVCAuthorizationTemplate authZTemplate, Date validFrom, Date validTo, String provider) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException, org.ejbca.cvc.exception.ConstructionException
publicKey
- the public keysignerKey
- private keyalgorithmName
- algorithm namecaRef
- CA principalholderRef
- holder principalauthZTemplate
- authorization templatevalidFrom
- valid from datevalidTo
- valid to dateprovider
- provider nameIOException
- on errorNoSuchAlgorithmException
- on unknown algorithmNoSuchProviderException
- on unknown providerInvalidKeyException
- on invalid keySignatureException
- on error creating signatureorg.ejbca.cvc.exception.ConstructionException
- on error constructing the certificateCopyright © 2016. All rights reserved.