This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 type PrivateKeyInfo. The PrivateKeyInfo syntax is defined in the PKCS#8 standard as follows:
PrivateKeyInfo ::= SEQUENCE { version Version, privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, privateKey PrivateKey, attributes [0] IMPLICIT Attributes OPTIONAL }
Version ::= INTEGER
PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute
This class represents the ASN.1 encoding of a private key,
encoded according to the ASN.1 type PrivateKeyInfo.
The PrivateKeyInfo syntax is defined in the PKCS#8 standard
as follows:
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL }
Version ::= INTEGER
PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute(->pkcs-8-encoded-key-spec encoded-key)Constructor.
Creates a new PKCS8EncodedKeySpec with the given encoded key.
encoded-key - the key, which is assumed to be encoded according to the PKCS #8 standard. The contents of the array are copied to protect against subsequent modification. - byte[]
throws: java.lang.NullPointerException - if encodedKey is null.
Constructor. Creates a new PKCS8EncodedKeySpec with the given encoded key. encoded-key - the key, which is assumed to be encoded according to the PKCS #8 standard. The contents of the array are copied to protect against subsequent modification. - `byte[]` throws: java.lang.NullPointerException - if encodedKey is null.
(get-encoded this)Returns the key bytes, encoded according to the PKCS #8 standard.
returns: the PKCS #8 encoding of the key. Returns a new array
each time this method is called. - byte[]
Returns the key bytes, encoded according to the PKCS #8 standard. returns: the PKCS #8 encoding of the key. Returns a new array each time this method is called. - `byte[]`
(get-format this)Returns the name of the encoding format associated with this key specification.
returns: the string PKCS#8. - java.lang.String
Returns the name of the encoding format associated with this key specification. returns: the string `PKCS#8`. - `java.lang.String`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |