Package com.symphony.api.id
Class P12SymphonyIdentity
- java.lang.Object
-
- com.symphony.api.id.SingleSymphonyIdentity
-
- com.symphony.api.id.P12SymphonyIdentity
-
- All Implemented Interfaces:
SymphonyIdentity
public class P12SymphonyIdentity extends SingleSymphonyIdentity
Loads a Symphony identity from a P12 (PKCS12) file containing an RSA private key and certificates. Although a p12 file could potentially store multiple identities, this will throw anIdentityConfigurationException
when constructed with a p12 containing multiple aliases.- Author:
- Rob Moffat
-
-
Field Summary
-
Fields inherited from class com.symphony.api.id.SingleSymphonyIdentity
chain, commonName, email, privateKey
-
-
Constructor Summary
Constructors Constructor Description P12SymphonyIdentity(InputStream p12inputStream, String password, String email)
P12SymphonyIdentity(KeyStore ks, String password, String email)
P12SymphonyIdentity(KeyManagerFactory kmf, String email)
P12SymphonyIdentity(X509KeyManager x509KeyManager, String email)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyManagerFactory
createKeyManagerFactory(KeyStore ks, String password)
static KeyStore
createKeyStore(InputStream is, String password)
-
Methods inherited from class com.symphony.api.id.SingleSymphonyIdentity
getCertificateChain, getCommonName, getCommonName, getEmail, getKeyManagers, getPrivateKey, getPublicKey
-
-
-
-
Constructor Detail
-
P12SymphonyIdentity
public P12SymphonyIdentity(X509KeyManager x509KeyManager, String email)
-
P12SymphonyIdentity
public P12SymphonyIdentity(KeyManagerFactory kmf, String email)
-
P12SymphonyIdentity
public P12SymphonyIdentity(InputStream p12inputStream, String password, String email)
-
-
Method Detail
-
createKeyManagerFactory
public static KeyManagerFactory createKeyManagerFactory(KeyStore ks, String password)
-
createKeyStore
public static KeyStore createKeyStore(InputStream is, String password)
-
-