A KeyStore entry that holds a PrivateKey and corresponding certificate chain.
A KeyStore entry that holds a PrivateKey and corresponding certificate chain.
(->private-key-entry private-key chain)
(->private-key-entry private-key chain attributes)
Constructor.
Constructs a PrivateKeyEntry with a PrivateKey and corresponding certificate chain and associated entry attributes.
The specified chain and attributes are cloned before they are stored in the new PrivateKeyEntry object.
private-key - the PrivateKey - java.security.PrivateKey
chain - an array of Certificates representing the certificate chain. The chain must be ordered and contain a Certificate at index 0 corresponding to the private key. - java.security.cert.Certificate[]
attributes - the attributes - java.util.Set
throws: java.lang.NullPointerException - if privateKey, chain or attributes is null
Constructor. Constructs a PrivateKeyEntry with a PrivateKey and corresponding certificate chain and associated entry attributes. The specified chain and attributes are cloned before they are stored in the new PrivateKeyEntry object. private-key - the PrivateKey - `java.security.PrivateKey` chain - an array of Certificates representing the certificate chain. The chain must be ordered and contain a Certificate at index 0 corresponding to the private key. - `java.security.cert.Certificate[]` attributes - the attributes - `java.util.Set` throws: java.lang.NullPointerException - if privateKey, chain or attributes is null
(get-attributes this)
Retrieves the attributes associated with an entry.
returns: an unmodifiable Set of attributes, possibly empty - java.util.Set<java.security.KeyStore$Entry$Attribute>
Retrieves the attributes associated with an entry. returns: an unmodifiable Set of attributes, possibly empty - `java.util.Set<java.security.KeyStore$Entry$Attribute>`
(get-certificate this)
Gets the end entity Certificate from the certificate chain in this entry.
returns: the end entity Certificate (at index 0)
from the certificate chain in this entry.
If the certificate is of type X.509,
the runtime type of the returned certificate is
X509Certificate. - java.security.cert.Certificate
Gets the end entity Certificate from the certificate chain in this entry. returns: the end entity Certificate (at index 0) from the certificate chain in this entry. If the certificate is of type X.509, the runtime type of the returned certificate is X509Certificate. - `java.security.cert.Certificate`
(get-certificate-chain this)
Gets the Certificate chain from this entry.
The stored chain is cloned before being returned.
returns: an array of Certificates corresponding
to the certificate chain for the public key.
If the certificates are of type X.509,
the runtime type of the returned array is
X509Certificate[]. - java.security.cert.Certificate[]
Gets the Certificate chain from this entry. The stored chain is cloned before being returned. returns: an array of Certificates corresponding to the certificate chain for the public key. If the certificates are of type X.509, the runtime type of the returned array is X509Certificate[]. - `java.security.cert.Certificate[]`
(get-private-key this)
Gets the PrivateKey from this entry.
returns: the PrivateKey from this entry - java.security.PrivateKey
Gets the PrivateKey from this entry. returns: the PrivateKey from this entry - `java.security.PrivateKey`
(to-string this)
Returns a string representation of this PrivateKeyEntry.
returns: a string representation of this PrivateKeyEntry. - java.lang.String
Returns a string representation of this PrivateKeyEntry. returns: a string representation of this PrivateKeyEntry. - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close