| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | BcX509ExtensionUtils()
Create a utility class pre-configured with a SHA-1 digest calculator based on the BC implementation. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| BcX509ExtensionUtils | back to summary |
|---|---|
| public BcX509ExtensionUtils() Create a utility class pre-configured with a SHA-1 digest calculator based on the BC implementation. | |
| BcX509ExtensionUtils | back to summary |
|---|---|
| public BcX509ExtensionUtils(DigestCalculator calculator) | |
| createAuthorityKeyIdentifier | back to summary |
|---|---|
| public AuthorityKeyIdentifier createAuthorityKeyIdentifier(AsymmetricKeyParameter publicKey) throws IOException | |
| createSubjectKeyIdentifier | back to summary |
|---|---|
| public SubjectKeyIdentifier createSubjectKeyIdentifier(AsymmetricKeyParameter publicKey) throws IOException 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).
| |
| Modifier and Type | Field and Description |
|---|---|
| private ByteArrayOutputStream |
| Access | Constructor and Description |
|---|---|
| private |
| 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 | |
| SHA1DigestCalculator | back to summary |
|---|---|
| private SHA1DigestCalculator() | |
| 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.
| |