| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | JcaX509ExtensionUtils()
Create a utility class pre-configured with a SHA-1 digest calculator based on the default implementation. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AuthorityKeyIdentifier | |
| public AuthorityKeyIdentifier | |
| public AuthorityKeyIdentifier | |
| public AuthorityKeyIdentifier | |
| public SubjectKeyIdentifier | Returns: the key identifier.the key object containing the key identifier is to be based on. publicKey)Return a RFC 3280 type 1 key identifier. |
| public SubjectKeyIdentifier | Returns: the key identifier.the key object of interest. publicKey)Return a RFC 3280 type 2 key identifier. |
| private static Collection | |
| public static Collection | |
| public static Collection | |
| public static ASN1Primitive | Returns: an ASN.1 objectDER encoded OCTET STRING containing the DER encoded extension object. encExtValue)Return the ASN.1 object contained in a byte[] returned by a getExtensionValue() call. |
| JcaX509ExtensionUtils | back to summary |
|---|---|
| public JcaX509ExtensionUtils() throws NoSuchAlgorithmException Create a utility class pre-configured with a SHA-1 digest calculator based on the default implementation. | |
| JcaX509ExtensionUtils | back to summary |
|---|---|
| public JcaX509ExtensionUtils(DigestCalculator calculator) | |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(X509Certificate cert) throws CertificateEncodingException | |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey pubKey) | |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey pubKey, X500Principal name, BigInteger serial) | |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey pubKey, GeneralNames generalNames, BigInteger serial) | |
| createSubjectKeyIdentifier | back to summary |
|---|---|
| public SubjectKeyIdentifier createSubjectKeyIdentifier(PublicKey publicKey) Return a RFC 3280 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(PublicKey publicKey) Return a RFC 3280 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.
| |
| getAlternativeNames | back to summary |
|---|---|
| private static Collection | |
| getIssuerAlternativeNames | back to summary |
|---|---|
| public static Collection | |
| getSubjectAlternativeNames | back to summary |
|---|---|
| public static Collection | |
| parseExtensionValue | back to summary |
|---|---|
| public static ASN1Primitive parseExtensionValue(byte[] encExtValue) throws IOException Return the ASN.1 object contained in a byte[] returned by a getExtensionValue() call.
| |
| Modifier and Type | Field and Description |
|---|---|
| private ByteArrayOutputStream | |
| private MessageDigest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | getAlgorithmIdentifier()
Implements org. |
| public byte[] | getDigest()
Implements org. |
| public OutputStream | getOutputStream()
Implements org. |
| bOut | back to summary |
|---|---|
| private ByteArrayOutputStream bOut | |
| digest | back to summary |
|---|---|
| private MessageDigest digest | |
| SHA1DigestCalculator | back to summary |
|---|---|
| public SHA1DigestCalculator(MessageDigest digest) | |
| getAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithmIdentifier() Implements org. Doc from org. Return the algorithm identifier representing the digest implemented by this calculator.
| |
| getDigest | back to summary |
|---|---|
| public byte[] getDigest() Implements org. Doc from org. Return the digest calculated on what has been written to the calculator's output stream.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements org. Doc from org. Returns a stream that will accept data for the purpose of calculating a digest. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
| |