Class ITSCertificate
java.lang.Object
org.bouncycastle.its.ITSCertificate
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
-
Constructor Summary
ConstructorsConstructorDescriptionITSCertificate(org.bouncycastle.oer.its.ieee1609dot2.CertificateBase certificate) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Return the encoding of this certificate to use when it is hashed, for example to calculate its HashedId8 or the signer certificate digest included in a signature calculation.byte[]org.bouncycastle.oer.its.ieee1609dot2.IssuerIdentifierReturn the certificate's public encryption key, if present.booleanisSignatureValid(ITSContentVerifierProvider verifierProvider) org.bouncycastle.oer.its.ieee1609dot2.CertificateBase
-
Constructor Details
-
ITSCertificate
public ITSCertificate(org.bouncycastle.oer.its.ieee1609dot2.CertificateBase certificate)
-
-
Method Details
-
getIssuer
public org.bouncycastle.oer.its.ieee1609dot2.IssuerIdentifier getIssuer() -
getValidityPeriod
-
getPublicEncryptionKey
Return the certificate's public encryption key, if present.- Returns:
-
isSignatureValid
- Throws:
Exception
-
toASN1Structure
public org.bouncycastle.oer.its.ieee1609dot2.CertificateBase toASN1Structure() -
getEncoded
- Specified by:
getEncodedin interfaceorg.bouncycastle.util.Encodable- Throws:
IOException
-
getCanonicalEncoding
Return the encoding of this certificate to use when it is hashed, for example to calculate its HashedId8 or the signer certificate digest included in a signature calculation.IEEE 1609.2 allows the rSig of a certificate's signature to be any of x-only, compressed-y-0, compressed-y-1 or uncompressed, but requires it to be taken to be of form x-only when the certificate is encoded for hashing. The returned encoding is the same as
getEncoded()with rSig converted to x-only, so every encoding of the same signature hashes to the same value.- Returns:
- the OER encoding of this certificate with its signature's rSig of form x-only.
- Throws:
IOException- if the signature cannot be converted or the certificate cannot be encoded.
-