Note
This class is not thread safe!
| Modifier and Type | Field and Description |
|---|---|
| private DigestCalculator |
| Access | Constructor and Description |
|---|---|
| public | X509ExtensionUtils(DigestCalculator
a calculator for calculating subject key ids. calculator)Base constructor - for conformance to RFC 5280 use a calculator based on SHA-1. |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| public AuthorityKeyIdentifier | Returns: an AuthorityKeyIdentifier.the issuer certificate that the AuthorityKeyIdentifier should refer to. certHolder)Create an AuthorityKeyIdentifier from the passed in arguments. |
| public AuthorityKeyIdentifier | Returns: an AuthorityKeyIdentifier.the SubjectPublicKeyInfo to base the key identifier on. publicKeyInfo)Create an AuthorityKeyIdentifier from the passed in SubjectPublicKeyInfo. |
| public AuthorityKeyIdentifier | Returns: an AuthorityKeyIdentifier.the SubjectPublicKeyInfo to base the key identifier on. publicKeyInfo, GeneralNames the general names to associate with the issuer cert's issuer. generalNames, BigInteger the serial number of the issuer cert. serial)Create an AuthorityKeyIdentifier from the passed in arguments. |
| public SubjectKeyIdentifier | Returns: the key identifier.the key info object containing the subjectPublicKey field. publicKeyInfo)Return a RFC 5280 type 1 key identifier. |
| public SubjectKeyIdentifier | Returns: the key identifier.the key info object containing the subjectPublicKey field. publicKeyInfo)Return a RFC 5280 type 2 key identifier. |
| private byte[] |
| calculator | back to summary |
|---|---|
| private DigestCalculator calculator | |
| X509ExtensionUtils | back to summary |
|---|---|
| public X509ExtensionUtils(DigestCalculator calculator) Base constructor - for conformance to RFC 5280 use a calculator based on SHA-1.
| |
| calculateIdentifier | back to summary |
|---|---|
| private byte[] calculateIdentifier(SubjectPublicKeyInfo publicKeyInfo) | |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(X509CertificateHolder certHolder) Create an AuthorityKeyIdentifier from the passed in arguments.
| |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(SubjectPublicKeyInfo publicKeyInfo) Create an AuthorityKeyIdentifier from the passed in SubjectPublicKeyInfo.
| |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(SubjectPublicKeyInfo publicKeyInfo, GeneralNames generalNames, BigInteger serial) Create an AuthorityKeyIdentifier from the passed in arguments.
| |
| createSubjectKeyIdentifier | back to summary |
|---|---|
| public SubjectKeyIdentifier createSubjectKeyIdentifier(SubjectPublicKeyInfo publicKeyInfo) Return a RFC 5280 type 1 key identifier. As in: (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).
| |
| createTruncatedSubjectKeyIdentifier | back to summary |
|---|---|
| public SubjectKeyIdentifier createTruncatedSubjectKeyIdentifier(SubjectPublicKeyInfo publicKeyInfo) Return a RFC 5280 type 2 key identifier. As in: (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.
| |
| getSubjectKeyIdentifier | back to summary |
|---|---|
| private byte[] getSubjectKeyIdentifier(X509CertificateHolder certHolder) | |