|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.AbstractX509Extension anon.crypto.X509SubjectKeyIdentifier
public final class X509SubjectKeyIdentifier
The subject public key identifier is calculated using a SHA1 hash over the BIT STRING from SubjectPublicKeyInfo as defined in RFC3280. For DSA-PublicKeys the AlgorithmIdentifier of the SubjectPublicKeyInfo MUST contain the DSA-Parameters as specified in RFC 3279
Field Summary | |
---|---|
static java.lang.String |
IDENTIFIER
|
private java.lang.String |
m_value
|
Constructor Summary | |
---|---|
X509SubjectKeyIdentifier(org.bouncycastle.asn1.DERSequence a_extension)
Creates an extension from a BouncyCastle DER sequence. |
|
X509SubjectKeyIdentifier(IMyPublicKey a_publicKey)
Creates a new X509SubjectKeyIdentifier from a public key. |
Method Summary | |
---|---|
private static byte[] |
createDEROctets(IMyPublicKey a_publicKey)
|
private void |
createValue()
|
java.lang.String |
getName()
Returns "SubjectKeyIdentifier". |
java.lang.String |
getValue()
Returns the subject public key identifier as human-readable hex string of the form A4:54:21:52:F1:... |
java.util.Vector |
getValues()
Returns the subject public key identifier as human-readable hex string. |
java.lang.String |
getValueWithoutColon()
Returns the subject public key identifier as human-readable hex string without ":" separators. |
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.lang.String m_value
Constructor Detail |
---|
public X509SubjectKeyIdentifier(IMyPublicKey a_publicKey)
a_publicKey
- a public keypublic X509SubjectKeyIdentifier(org.bouncycastle.asn1.DERSequence a_extension)
a_extension
- a DERSequenceMethod Detail |
---|
public java.lang.String getName()
getName
in class AbstractX509Extension
public java.lang.String getValue()
public java.lang.String getValueWithoutColon()
public java.util.Vector getValues()
getValues
in class AbstractX509Extension
private static byte[] createDEROctets(IMyPublicKey a_publicKey)
private void createValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |