public class X509ExtensionUtils extends Object
Note: This class is not thread safe!
Constructor and Description |
---|
X509ExtensionUtils(DigestCalculator calculator) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier |
createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier |
createAuthorityKeyIdentifier(X509CertificateHolder certHolder) |
org.bouncycastle.asn1.x509.SubjectKeyIdentifier |
createSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Return a RFC 3280 type 1 key identifier.
|
org.bouncycastle.asn1.x509.SubjectKeyIdentifier |
createTruncatedSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Return a RFC 3280 type 2 key identifier.
|
public X509ExtensionUtils(DigestCalculator calculator)
public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(X509CertificateHolder certHolder)
public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
public org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
(1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the value of the BIT STRING subjectPublicKey (excluding the tag, length, and number of unused bits).
publicKeyInfo
- the key info object containing the subjectPublicKey field.public org.bouncycastle.asn1.x509.SubjectKeyIdentifier createTruncatedSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
(2) The keyIdentifier is composed of a four bit type field with the value 0100 followed by the least significant 60 bits of the SHA-1 hash of the value of the BIT STRING subjectPublicKey.
publicKeyInfo
- the key info object containing the subjectPublicKey field.