|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.AbstractX509Extension anon.crypto.AbstractX509KeyIdentifier anon.crypto.X509AuthorityKeyIdentifier
public class X509AuthorityKeyIdentifier
The Authority Public Key Identifier as specified in RFC 5280 is calcluated the same way as the SubjectKeyIdentifier.
http://tools.ietf.org/html/rfc5280
Field Summary | |
---|---|
static java.lang.String |
IDENTIFIER
|
private org.bouncycastle.asn1.x509.GeneralNames |
m_names
the optional name of the issuer |
private java.math.BigInteger |
m_serial
the optional serial number of the issuing certificate |
Fields inherited from class anon.crypto.AbstractX509KeyIdentifier |
---|
m_value |
Constructor Summary | |
---|---|
X509AuthorityKeyIdentifier(org.bouncycastle.asn1.DERSequence a_extension)
Creates an extension from a BouncyCastle DER sequence. |
|
X509AuthorityKeyIdentifier(IMyPublicKey a_publicKey)
Creates a new X509AuthorityKeyIdentifier from a public key. |
|
X509AuthorityKeyIdentifier(IMyPublicKey a_publicKey,
org.bouncycastle.asn1.x509.GeneralNames a_name,
java.math.BigInteger a_serial)
Creates a new X509AuthorityKeyIdentifier from a public key, a name and a certificate serial |
|
X509AuthorityKeyIdentifier(IMyPublicKey a_publicKey,
X509DistinguishedName a_name,
java.math.BigInteger a_serial)
Creates a new X509AuthorityKeyIdentifier from a public key, a distinguished name and a certificate serial |
Method Summary | |
---|---|
private static byte[] |
createDEROctets(IMyPublicKey a_publicKey,
org.bouncycastle.asn1.x509.GeneralNames a_name,
java.math.BigInteger a_serial)
Generates the octets to hand over to the super class |
private void |
createValue()
Calculate the AuthorityKeyIdentifier value. |
java.lang.String |
getName()
Returns "AuthorityKeyIdentifier". |
java.util.Vector |
getValues()
Returns a Vector containing the keyIdentifier and if available the name of the certificate issuer und the serial number of the issuing certificate. |
Methods inherited from class anon.crypto.AbstractX509KeyIdentifier |
---|
getValue, getValueWithoutColon |
Methods inherited from class anon.crypto.AbstractX509Extension |
---|
equals, getBCExtension, getDEROctets, getIdentifier, getInstance, hashCode, isCritical, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IDENTIFIER
private java.math.BigInteger m_serial
private org.bouncycastle.asn1.x509.GeneralNames m_names
Constructor Detail |
---|
public X509AuthorityKeyIdentifier(IMyPublicKey a_publicKey)
a_publicKey
- the issuer's public keypublic X509AuthorityKeyIdentifier(IMyPublicKey a_publicKey, org.bouncycastle.asn1.x509.GeneralNames a_name, java.math.BigInteger a_serial)
a_publicKey
- the issuer's public keya_name
- the issuer's namea_serial
- the issuing certificate's serial numberpublic X509AuthorityKeyIdentifier(IMyPublicKey a_publicKey, X509DistinguishedName a_name, java.math.BigInteger a_serial)
a_publicKey
- the issuer's public keya_name
- the issuer's distinguished namea_serial
- the issuing certificate's serial numberpublic X509AuthorityKeyIdentifier(org.bouncycastle.asn1.DERSequence a_extension)
a_extension
- a DERSequenceMethod Detail |
---|
public java.lang.String getName()
getName
in class AbstractX509Extension
private static byte[] createDEROctets(IMyPublicKey a_publicKey, org.bouncycastle.asn1.x509.GeneralNames a_name, java.math.BigInteger a_serial)
a_publicKey
- the issuer's public keya_name
- the issuer's namea_serial
- the issuing certificate's serial number
private void createValue()
public java.util.Vector getValues()
getValues
in class AbstractX509KeyIdentifier
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |