Package org.wildfly.security.x500.cert
Class AuthorityKeyIdentifierExtension
- java.lang.Object
-
- org.wildfly.security.x500.cert.X509CertificateExtension
-
- org.wildfly.security.x500.cert.AuthorityKeyIdentifierExtension
-
- All Implemented Interfaces:
Extension
,ASN1Encodable
public final class AuthorityKeyIdentifierExtension extends X509CertificateExtension
Authority key identifier extension as defined by RFC 5280 ยง 4.2.1.1.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private List<GeneralName>
generalNames
private byte[]
keyIdentifier
private BigInteger
serialNumber
-
Constructor Summary
Constructors Constructor Description AuthorityKeyIdentifierExtension(byte[] keyIdentifier, List<GeneralName> generalNames, BigInteger serialNumber)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeTo(ASN1Encoder encoder)
Encode this object.String
getId()
Get the OID of this extension.-
Methods inherited from class org.wildfly.security.x500.cert.X509CertificateExtension
encode, getValue, isCritical
-
-
-
-
Field Detail
-
keyIdentifier
private final byte[] keyIdentifier
-
generalNames
private final List<GeneralName> generalNames
-
serialNumber
private final BigInteger serialNumber
-
-
Constructor Detail
-
AuthorityKeyIdentifierExtension
public AuthorityKeyIdentifierExtension(byte[] keyIdentifier, List<GeneralName> generalNames, BigInteger serialNumber)
Construct a new instance.- Parameters:
keyIdentifier
- the key identifier to specify, ornull
to leave it outgeneralNames
- the list of general names to specify, ornull
to leave it outserialNumber
- the serial number to specify, ornull
to leave it out
-
-
Method Detail
-
getId
public String getId()
Description copied from class:X509CertificateExtension
Get the OID of this extension.- Specified by:
getId
in interfaceExtension
- Specified by:
getId
in classX509CertificateExtension
- Returns:
- the OID of this extension (must not be
null
)
-
encodeTo
public void encodeTo(ASN1Encoder encoder)
Description copied from interface:ASN1Encodable
Encode this object.- Parameters:
encoder
- the encoder (must not benull
)
-
-