public class CVCAuthenticatedRequest extends AbstractSequence implements Signable
CVC_VERSION, NEWLINE| Constructor and Description |
|---|
CVCAuthenticatedRequest(CVCertificate cvcert,
CAReferenceField caReference)
Creates an instance
|
| Modifier and Type | Method and Description |
|---|---|
protected CVCTagEnum[] |
getAllowedFields()
Returns tags for all allowed subfields, in the same order as they
appear when DER-encoded
|
CAReferenceField |
getAuthorityReference()
Returns CA_REFERENCE
|
CVCertificate |
getRequest()
Returns the embedded request (as an instance of CVCertificate)
|
byte[] |
getSignature()
Returns signature
|
byte[] |
getTBS()
Returns the data To Be Signed
|
void |
setSignature(byte[] signatureData)
Adds signature
|
String |
toString()
Helper method, returns this request as text
|
void |
verify(PublicKey pubKey)
Verifies the signature
|
encode, getAsText, getAsText, getDEREncoded, getEncodableFields, getSubfieldsdecodeLength, encodeLength, getAsText, getAsText, getParent, getTag, setParent, toByteArray, toByteArray, trimByteArraypublic CVCAuthenticatedRequest(CVCertificate cvcert, CAReferenceField caReference) throws ConstructionException
cvcert - caReference - ConstructionExceptionprotected CVCTagEnum[] getAllowedFields()
AbstractSequencegetAllowedFields in class AbstractSequencepublic void setSignature(byte[] signatureData)
throws ConstructionException
signatureData - ConstructionExceptionpublic byte[] getTBS()
throws ConstructionException
getTBS in interface SignableConstructionExceptionpublic CVCertificate getRequest() throws NoSuchFieldException
NoSuchFieldExceptionpublic CAReferenceField getAuthorityReference() throws NoSuchFieldException
NoSuchFieldExceptionpublic byte[] getSignature()
throws NoSuchFieldException
NoSuchFieldExceptionpublic void verify(PublicKey pubKey) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
pubKey - CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureExceptionCopyright © 2017. All rights reserved.