SSLContext.
This object holds the configurable properties for an SSL context and uses
them to create an SSLContext instance.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private KeyManagerFactoryFactoryBean | |
| private KeyStoreFactoryBean | |
| private String | |
| private String | |
| private SecureRandomFactoryBean | |
| private TrustManagerFactoryFactoryBean | |
| private KeyStoreFactoryBean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SSLContext | Returns: SSLContext objectcontext for status messages context)Creates a new |
| private KeyManager[] | Returns: an array of key managers ornull if no key store
configuration was providedcontext for status messages context)Creates key managers using the receiver's key store configuration. |
| private SecureRandom | |
| private TrustManager[] | Returns: an array of trust managers ornull if no trust store
configuration was providedcontext for status messages context)Creates trust managers using the receiver's trust store configuration. |
| public KeyManagerFactoryFactoryBean | Returns: factory bean; if no key manager factory configuration has been set, a default factory bean is returnedGets the key manager factory configuration. |
| public KeyStoreFactoryBean | Returns: key store factory bean ornull if no key store configuration
was providedGets the key store configuration. |
| public String | Returns: protocol name (e.g.SSL, TLS); the
SSL#DEFAULT_PROTOCOL is returned if no protocol has been
configuredGets the secure transport protocol name. |
| public String | |
| public SecureRandomFactoryBean | Returns: secure random factory bean; if no secure random generator configuration has been set, a default factory bean is returnedGets the secure random generator configuration. |
| public TrustManagerFactoryFactoryBean | Returns: factory bean; if no trust manager factory configuration has been set, a default factory bean is returnedGets the trust manager factory configuration. |
| public KeyStoreFactoryBean | Returns: trust store factory bean ornull if no trust store
configuration was providedGets the trust store configuration. |
| private KeyStoreFactoryBean | Returns: key store ornull if no value is defined for the base system
property namebase property name (e.g. property)javax.net.ssl.keyStore)Constructs a key store factory bean using JSSE system properties. |
| private String | Returns: URL for the location specified in the property ornull if no
value is defined for the propertyproperty name (e.g. name)javax.net.ssl.keyStore)Constructs a resource location from a JSSE system property. |
| public void | setKeyManagerFactory(KeyManagerFactoryFactoryBean
the key manager factory bean to set keyManagerFactory)Sets the key manager factory configuration. |
| public void | setKeyStore(KeyStoreFactoryBean
the key store factory bean to set keyStore)Sets the key store configuration. |
| public void | setProtocol(String
a protocol name, which must be recognized by the provider
specified by protocol)setProvider(String) or by the
platform's default provider if no platform was specified.Sets the secure transport protocol name. |
| public void | setProvider(String
name of the JSSE provider to use in creating the SSL context provider)Sets the JSSE provider name for the SSL context. |
| public void | setSecureRandom(SecureRandomFactoryBean
the secure random factory bean to set secureRandom)Sets the secure random generator configuration. |
| public void | setTrustManagerFactory(TrustManagerFactoryFactoryBean
the factory bean to set trustManagerFactory)Sets the trust manager factory configuration. |
| public void | setTrustStore(KeyStoreFactoryBean
the trust store factory bean to set trustStore)Sets the trust store configuration. |
| JSSE_KEY_STORE_PROPERTY | back to summary |
|---|---|
| private static final String JSSE_KEY_STORE_PROPERTY | |
| JSSE_TRUST_STORE_PROPERTY | back to summary |
|---|---|
| private static final String JSSE_TRUST_STORE_PROPERTY | |
| keyManagerFactory | back to summary |
|---|---|
| private KeyManagerFactoryFactoryBean keyManagerFactory | |
| keyStore | back to summary |
|---|---|
| private KeyStoreFactoryBean keyStore | |
| protocol | back to summary |
|---|---|
| private String protocol | |
| provider | back to summary |
|---|---|
| private String provider | |
| secureRandom | back to summary |
|---|---|
| private SecureRandomFactoryBean secureRandom | |
| trustManagerFactory | back to summary |
|---|---|
| private TrustManagerFactoryFactoryBean trustManagerFactory | |
| trustStore | back to summary |
|---|---|
| private KeyStoreFactoryBean trustStore | |
| SSLContextFactoryBean | back to summary |
|---|---|
| public SSLContextFactoryBean() | |
| createContext | back to summary |
|---|---|
| public SSLContext createContext(ContextAware context) throws NoSuchProviderException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, CertificateException Creates a new
| |
| createKeyManagers | back to summary |
|---|---|
| private KeyManager[] createKeyManagers(ContextAware context) throws NoSuchProviderException, NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException Creates key managers using the receiver's key store configuration.
| |
| createSecureRandom | back to summary |
|---|---|
| private SecureRandom createSecureRandom(ContextAware context) throws NoSuchProviderException, NoSuchAlgorithmException | |
| createTrustManagers | back to summary |
|---|---|
| private TrustManager[] createTrustManagers(ContextAware context) throws NoSuchProviderException, NoSuchAlgorithmException, KeyStoreException Creates trust managers using the receiver's trust store configuration.
| |
| getKeyManagerFactory | back to summary |
|---|---|
| public KeyManagerFactoryFactoryBean getKeyManagerFactory() Gets the key manager factory configuration.
| |
| getKeyStore | back to summary |
|---|---|
| public KeyStoreFactoryBean getKeyStore() Gets the key store configuration.
| |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() Gets the secure transport protocol name.
| |
| getProvider | back to summary |
|---|---|
| public String getProvider() Gets the JSSE provider name for the SSL context.
| |
| getSecureRandom | back to summary |
|---|---|
| public SecureRandomFactoryBean getSecureRandom() Gets the secure random generator configuration.
| |
| getTrustManagerFactory | back to summary |
|---|---|
| public TrustManagerFactoryFactoryBean getTrustManagerFactory() Gets the trust manager factory configuration.
| |
| getTrustStore | back to summary |
|---|---|
| public KeyStoreFactoryBean getTrustStore() Gets the trust store configuration.
| |
| keyStoreFromSystemProperties | back to summary |
|---|---|
| private KeyStoreFactoryBean keyStoreFromSystemProperties(String property) Constructs a key store factory bean using JSSE system properties.
| |
| locationFromSystemProperty | back to summary |
|---|---|
| private String locationFromSystemProperty(String name) Constructs a resource location from a JSSE system property. | |
| setKeyManagerFactory | back to summary |
|---|---|
| public void setKeyManagerFactory(KeyManagerFactoryFactoryBean keyManagerFactory) Sets the key manager factory configuration.
| |
| setKeyStore | back to summary |
|---|---|
| public void setKeyStore(KeyStoreFactoryBean keyStore) Sets the key store configuration.
| |
| setProtocol | back to summary |
|---|---|
| public void setProtocol(String protocol) Sets the secure transport protocol name.
| |
| setProvider | back to summary |
|---|---|
| public void setProvider(String provider) Sets the JSSE provider name for the SSL context.
| |
| setSecureRandom | back to summary |
|---|---|
| public void setSecureRandom(SecureRandomFactoryBean secureRandom) Sets the secure random generator configuration.
| |
| setTrustManagerFactory | back to summary |
|---|---|
| public void setTrustManagerFactory(TrustManagerFactoryFactoryBean trustManagerFactory) Sets the trust manager factory configuration.
| |
| setTrustStore | back to summary |
|---|---|
| public void setTrustStore(KeyStoreFactoryBean trustStore) Sets the trust store configuration.
| |