public class AuthorityKeyIDExtension extends X509Extension
If the key ID representation is used, the bytes should be obtained using one of the following two methods:
If the issuer/serial number representation is used, both the issuer and the serial number MUST be present.
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded| Constructor and Description |
|---|
AuthorityKeyIDExtension()
Create a new extension with the appropriate OID type.
|
AuthorityKeyIDExtension(byte[] keyID)
Creates a new extension with the specified authority key identifier.
|
AuthorityKeyIDExtension(byte[] keyID, boolean critical)
Creates a new extension with the specified authority key identifier.
|
AuthorityKeyIDExtension(GeneralName issuer, java.math.BigInteger serialNo)
Creates a new extension with the specified authority certificate issuer and serial number.
|
AuthorityKeyIDExtension(GeneralName issuer, java.math.BigInteger serialNo, boolean critical)
Creates a new extension with the specified authority certificate issuer and serial number.
|
AuthorityKeyIDExtension(java.io.InputStream is) |
AuthorityKeyIDExtension(java.util.List<GeneralName> issuer, java.math.BigInteger serialNo)
Creates a new extension with the specified authority certificate issuer and serial number.
|
AuthorityKeyIDExtension(java.util.List<GeneralName> issuer, java.math.BigInteger serialNo, boolean critical)
Creates a new extension with the specified authority certificate issuer and serial number.
|
AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer, java.math.BigInteger serialNo)
Deprecated.
|
AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer, java.math.BigInteger serialNo, boolean critical)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration<GeneralName> |
authorityCertIssuer()
Deprecated.
|
java.util.ArrayList<GeneralName> |
getAuthorityCertIssuer()
Deprecated.
|
java.math.BigInteger |
getAuthorityCertSerialNo()
Gets the authority certificate serial number for this extension.
|
byte[] |
getAuthorityKeyID()
Gets the authority key ID for this extension.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternalpublic AuthorityKeyIDExtension()
Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.
public AuthorityKeyIDExtension(byte[] keyID)
keyID - A byte[] containing the authority key identifier.
public AuthorityKeyIDExtension(byte[] keyID,
boolean critical)
keyID - A byte[] containing the authority key identifier.critical - true if this extension is critical, false otherwise.public AuthorityKeyIDExtension(GeneralName issuer, java.math.BigInteger serialNo)
issuer - The authority certificate issuer.serialNo - The authority certificate serial number.public AuthorityKeyIDExtension(GeneralName issuer, java.math.BigInteger serialNo, boolean critical)
issuer - The authority certificate issuer.serialNo - The authority certificate serial number.critical - true if this extension is critical, false otherwise.public AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer, java.math.BigInteger serialNo)
AuthorityKeyIDExtension(List, BigInteger)issuer - A Vector of GeneralNames for the authority certificate issuer.serialNo - The authority certificate serial number.public AuthorityKeyIDExtension(java.util.List<GeneralName> issuer, java.math.BigInteger serialNo)
issuer - A List of GeneralNames for the authority certificate issuer.serialNo - The authority certificate serial number.public AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer, java.math.BigInteger serialNo, boolean critical)
AuthorityKeyIDExtension(List, BigInteger, boolean)issuer - A Vector of GeneralNames for the authority certificate issuer.serialNo - The authority certificate serial number.critical - true if this extension is critical, false otherwise.public AuthorityKeyIDExtension(java.util.List<GeneralName> issuer, java.math.BigInteger serialNo, boolean critical)
issuer - A Vector of GeneralNames for the authority certificate issuer.serialNo - The authority certificate serial number.critical - true if this extension is critical, false otherwise.
public AuthorityKeyIDExtension(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getAuthorityKeyID()
byte[] keyID, or null if the issuer and serial number representation is used.public java.util.Enumeration<GeneralName> authorityCertIssuer()
getAuthorityCertIssuer()Enumeration of GeneralNames representing the authority certificate issuer, or null if the keyID representation is used.public java.util.ArrayList<GeneralName> getAuthorityCertIssuer()
ArrayList of GeneralNames representing the authority certificate issuer, or null if the keyID representation is used.public java.math.BigInteger getAuthorityCertSerialNo()
BigInteger serial number, or null if the keyID representation is used.public java.lang.String toString()
X509ExtensiontoString in class X509Extension