public class PlatformKeyAndTrustManagerFactory extends KeyAndTrustManagerFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_STORE_TYPE |
| Constructor and Description |
|---|
PlatformKeyAndTrustManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
Certificate |
getCertificate(CredentialInfo credentialInfo,
java.lang.String keyId) |
byte[] |
getCertificateThumbprint(Certificate cert) |
byte[] |
getCertificateThumbprint(CredentialInfo credentialInfo) |
Certificate |
getCertificateWithThumbprint(CredentialInfo credentialInfo,
byte[] thumbprint) |
KeyManagers |
getKeyManagers(java.lang.String filename,
java.lang.String password)
Returns the key mangers for the given file and password.
|
PrivateKey |
getPrivateKey(CredentialInfo credentialInfo) |
TrustManagers |
getTrustManagers(java.lang.String filename,
java.lang.String password)
Returns the trust managers for given file and password.
|
KeyStore |
loadKeyStore(java.lang.String filename,
java.lang.String password) |
getInstancepublic static final java.lang.String KEY_STORE_TYPE
public KeyManagers getKeyManagers(java.lang.String filename, java.lang.String password) throws java.io.IOException
getKeyManagers in class KeyAndTrustManagerFactoryjava.io.IOExceptionjava.lang.Exceptionpublic TrustManagers getTrustManagers(java.lang.String filename, java.lang.String password) throws java.io.IOException
getTrustManagers in class KeyAndTrustManagerFactoryjava.io.IOExceptionjava.lang.Exceptionpublic KeyStore loadKeyStore(java.lang.String filename, java.lang.String password) throws java.io.IOException
loadKeyStore in class KeyAndTrustManagerFactoryjava.io.IOExceptionpublic PrivateKey getPrivateKey(CredentialInfo credentialInfo)
getPrivateKey in class KeyAndTrustManagerFactorypublic Certificate getCertificate(CredentialInfo credentialInfo, java.lang.String keyId)
getCertificate in class KeyAndTrustManagerFactorypublic Certificate getCertificateWithThumbprint(CredentialInfo credentialInfo, byte[] thumbprint)
getCertificateWithThumbprint in class KeyAndTrustManagerFactorythumbprint - - the thumbprint (SHA-1 hash of the raw octets) of a certificatepublic byte[] getCertificateThumbprint(CredentialInfo credentialInfo) throws java.lang.Exception
getCertificateThumbprint in class KeyAndTrustManagerFactoryjava.lang.Exceptionpublic byte[] getCertificateThumbprint(Certificate cert) throws java.lang.Exception
getCertificateThumbprint in class KeyAndTrustManagerFactoryjava.lang.Exception