|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.cert.X509ExtensionUtils
General utility class for creating calculated extensions using the standard methods.
Note: This class is not thread safe!
Constructor Summary | |
X509ExtensionUtils(DigestCalculator calculator)
Base constructor - for conformance to RFC 5280 use a calculator based on SHA-1. |
Method Summary | |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier |
createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Create an AuthorityKeyIdentifier from the passed in SubjectPublicKeyInfo. |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier |
createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo,
org.bouncycastle.asn1.x509.GeneralNames generalNames,
java.math.BigInteger serial)
Create an AuthorityKeyIdentifier from the passed in arguments. |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier |
createAuthorityKeyIdentifier(X509CertificateHolder certHolder)
Create an AuthorityKeyIdentifier from the passed in arguments. |
org.bouncycastle.asn1.x509.SubjectKeyIdentifier |
createSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Return a RFC 5280 type 1 key identifier. |
org.bouncycastle.asn1.x509.SubjectKeyIdentifier |
createTruncatedSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Return a RFC 5280 type 2 key identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X509ExtensionUtils(DigestCalculator calculator)
calculator
- a calculator for calculating subject key ids.Method Detail |
public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(X509CertificateHolder certHolder)
certHolder
- the issuer certificate that the AuthorityKeyIdentifier should refer to.public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
publicKeyInfo
- the SubjectPublicKeyInfo to base the key identifier on.public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo, org.bouncycastle.asn1.x509.GeneralNames generalNames, java.math.BigInteger serial)
publicKeyInfo
- the SubjectPublicKeyInfo to base the key identifier on.generalNames
- the general names to associate with the issuer cert's issuer.serial
- the serial number of the issuer cert.public org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
publicKeyInfo
- the key info object containing the subjectPublicKey field.public org.bouncycastle.asn1.x509.SubjectKeyIdentifier createTruncatedSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
publicKeyInfo
- the key info object containing the subjectPublicKey field.
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |