This class represents an X500PrivateCredential. It associates an X.509 certificate, corresponding private key and the KeyStore alias used to reference that exact key pair in the KeyStore. This enables looking up the private credentials for an X.500 principal in a subject.
This class represents an X500PrivateCredential. It associates an X.509 certificate, corresponding private key and the KeyStore alias used to reference that exact key pair in the KeyStore. This enables looking up the private credentials for an X.500 principal in a subject.
(->x-500-private-credential cert key)
(->x-500-private-credential cert key alias)
Constructor.
Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.
cert - X509Certificate - java.security.cert.X509Certificate
key - PrivateKey for the certificate - java.security.PrivateKey
alias - KeyStore alias - java.lang.String
throws: java.lang.IllegalArgumentException - if either cert, key or alias is null
Constructor. Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias. cert - X509Certificate - `java.security.cert.X509Certificate` key - PrivateKey for the certificate - `java.security.PrivateKey` alias - KeyStore alias - `java.lang.String` throws: java.lang.IllegalArgumentException - if either cert, key or alias is null
(destroy this)
Clears the references to the X.509 certificate, private key and the KeyStore alias in this object.
Clears the references to the X.509 certificate, private key and the KeyStore alias in this object.
(destroyed? this)
Determines if the references to the X.509 certificate and private key in this object have been cleared.
returns: true if X509Certificate and the PrivateKey are null - boolean
Determines if the references to the X.509 certificate and private key in this object have been cleared. returns: true if X509Certificate and the PrivateKey are null - `boolean`
(get-alias this)
Returns the KeyStore alias.
returns: the KeyStore alias - java.lang.String
Returns the KeyStore alias. returns: the KeyStore alias - `java.lang.String`
(get-certificate this)
Returns the X.509 certificate.
returns: the X509Certificate - java.security.cert.X509Certificate
Returns the X.509 certificate. returns: the X509Certificate - `java.security.cert.X509Certificate`
(get-private-key this)
Returns the PrivateKey.
returns: the PrivateKey - java.security.PrivateKey
Returns the PrivateKey. returns: the PrivateKey - `java.security.PrivateKey`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close