public class C509PrivateKeyPossessionStatement
extends java.lang.Object
PrivateKeyPossessionStatement = [ issuer: Name, certificateSerialNumber: CertificateSerialNumber, cert: C509CertData / null, ]The issuer and serial number name the signature certificate whose holder vouches for possession of the key-establishment private key; the certificate itself may be carried alongside, as a C509 certificate of either type. In a CBOR re-encoded (type 3) request the certificate must itself be a re-encoded (type 3) C509 certificate, or the RFC 2986 request cannot be reconstructed.
| Constructor and Description |
|---|
C509PrivateKeyPossessionStatement(C509Certificate certificate)
A statement carrying the signature certificate, named by its own issuer and
serial number.
|
C509PrivateKeyPossessionStatement(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serialNumber)
A statement naming the signature certificate without carrying it.
|
C509PrivateKeyPossessionStatement(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serialNumber,
C509Certificate certificate)
A statement naming the signature certificate, optionally carrying it.
|
| Modifier and Type | Method and Description |
|---|---|
static C509PrivateKeyPossessionStatement |
fromPrivateKeyPossessionStatement(org.bouncycastle.asn1.x509.PrivateKeyPossessionStatement statement,
C509ConversionOptions options)
Build the C509 form of an RFC 9883 statement, re-encoding any certificate it
carries as a type 3 C509 certificate.
|
C509Certificate |
getCertificate()
Return the signature certificate, or null if the statement only names it.
|
byte[] |
getEncoded()
Return the CBOR encoding of the attribute value.
|
static C509PrivateKeyPossessionStatement |
getInstance(byte[] cborEncoding)
Parse a statement from the CBOR encoding of the attribute value (the array).
|
org.bouncycastle.asn1.x500.X500Name |
getIssuer()
Return the issuer name of the signature certificate.
|
java.math.BigInteger |
getSerialNumber()
Return the serial number of the signature certificate.
|
org.bouncycastle.asn1.x509.PrivateKeyPossessionStatement |
toPrivateKeyPossessionStatement()
Return the RFC 9883 form of this statement.
|
public C509PrivateKeyPossessionStatement(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serialNumber)
public C509PrivateKeyPossessionStatement(C509Certificate certificate)
public C509PrivateKeyPossessionStatement(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serialNumber,
C509Certificate certificate)
certificate - the signature certificate, or null to omit it.public static C509PrivateKeyPossessionStatement getInstance(byte[] cborEncoding) throws java.io.IOException
java.io.IOExceptionpublic static C509PrivateKeyPossessionStatement fromPrivateKeyPossessionStatement(org.bouncycastle.asn1.x509.PrivateKeyPossessionStatement statement, C509ConversionOptions options) throws java.io.IOException
java.io.IOException - if the issuer name or the certificate cannot be represented in C509.public org.bouncycastle.asn1.x509.PrivateKeyPossessionStatement toPrivateKeyPossessionStatement()
throws java.io.IOException
java.io.IOException - if the certificate carried is natively signed (type 2) and
so has no X.509 form.public org.bouncycastle.asn1.x500.X500Name getIssuer()
public java.math.BigInteger getSerialNumber()
public C509Certificate getCertificate()
public byte[] getEncoded()
throws java.io.IOException
java.io.IOException