|
Sun Adapter for e-Mail API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.connector.emailadapter.appconn.EmailSecurityProperties
public final class EmailSecurityProperties
Wrapper class for Security related SSL properties.
| Field Summary | |
|---|---|
protected static java.lang.String |
DEFAULT_KEYMANAGER_ALGORITHM_NAME
Default KeyManager algorithm name property |
protected static java.lang.String |
DEFAULT_SSL_SOCKETFACTORY_IMPL_PROPERTY
SSL SocketFactory implementation property |
protected static java.lang.String |
DEFAULT_SSL_SSLSERVERSOCKETFACTORY_IMPL_PROPERTY
SSL ServerSocketFactory implementation property |
protected static java.lang.String |
DEFAULT_TRUSTMANAGER_ALGORITHM_NAME
Default TrustManager algorithm name property |
protected static java.lang.String |
X509_CERTIFICATE_IMPL_PROPERTY
X509 Certificate implementation property |
| Constructor Summary | |
|---|---|
EmailSecurityProperties()
|
|
| Method Summary | |
|---|---|
static void |
addProvider(java.lang.String providerClass)
Add a Cryptographic Service Provider (provider). |
static java.lang.String |
getKeyManagerAlgorithm()
Gets the default Key Manager Algorithm name previously set. |
static java.security.Provider[] |
getProviders()
Gets a list of Cryptographic Service Provider (provider). |
static java.lang.String |
getSSLServerSocketFactoryImpl()
Gets the default SSL Server Socket Factory implementation. |
static java.lang.String |
getSSLSocketFactoryImpl()
Gets the default SSL Socket Factory implementation. |
static java.lang.String |
getTrustManagerAlgorithm()
Gets the default Trust Manager Algorithm name previously set. |
static java.lang.String |
getX509CertificateImpl()
Gets the X509Certificate implementation. |
static void |
insertProviderAt(java.lang.String providerClass,
int position)
Add a Cryptographic Service Provider (provider). |
static void |
setKeyManagerAlgorithm(java.lang.String keyManagerAlgoName)
Sets the default Key Manager Algorithm name. |
static void |
setSSLServerSocketFactoryImpl(java.lang.String sslServerSocketFactoryImplClass)
Sets the default SSL Server Socket Factory implementation. |
static void |
setSSLSocketFactoryImpl(java.lang.String sslSocketFactoryImplClass)
Sets the default SSL Socket Factory implementation. |
static void |
setTrustManagerAlgorithm(java.lang.String trustManagerAlgoName)
Sets the default Trust Manager Algorithm name. |
static void |
setX509CertificateImpl(java.lang.String x509CertificateImpl)
Sets the X509Certificate implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String X509_CERTIFICATE_IMPL_PROPERTY
protected static final java.lang.String DEFAULT_SSL_SOCKETFACTORY_IMPL_PROPERTY
protected static final java.lang.String DEFAULT_SSL_SSLSERVERSOCKETFACTORY_IMPL_PROPERTY
protected static final java.lang.String DEFAULT_KEYMANAGER_ALGORITHM_NAME
protected static final java.lang.String DEFAULT_TRUSTMANAGER_ALGORITHM_NAME
| Constructor Detail |
|---|
public EmailSecurityProperties()
| Method Detail |
|---|
public static void addProvider(java.lang.String providerClass)
throws java.lang.Exception
providerClass - The JSSE Crytographic Service Provider to add to
the list of JSSE provider implementations. For example, to use
SUN's JSSE Provider reference implementation, specify
"com.sun.net.ssl.internal.ssl.Provider".
java.lang.Exception - upone error.
public static void insertProviderAt(java.lang.String providerClass,
int position)
throws java.lang.Exception
providerClass - The JSSE Crytographic Service Provider to add to
the list of JSSE provider implementations. For example, to use
SUN's JSSE Provider reference implementation, specify
"com.sun.net.ssl.internal.ssl.Provider".position - The position to insert this Provider.
java.lang.Exception - upon error.public static java.security.Provider[] getProviders()
addProvider(java.lang.String),
insertProviderAt(java.lang.String, int),
Provider
public static void setX509CertificateImpl(java.lang.String x509CertificateImpl)
throws java.lang.Exception
x509CertificateImpl - The implementation class of X509Certificate.
For example, if the implementation class is called
MyX509CertificateImpl and it appears in the com.radcrypto
package, you should specify com.radcrypto.MyX509CertificateImpl.
java.lang.Exception - if unable to set the X509Certificate implementation.public static java.lang.String getX509CertificateImpl()
public static void setSSLSocketFactoryImpl(java.lang.String sslSocketFactoryImplClass)
throws java.lang.Exception
sslSocketFactoryImplClass - The implementation class of SSL Socket
Factory. For example, if the implementation class is called
MySSLSocketFactoryImpl and it appears in the com.radcrypto
package, you should specify
com.radcrypto.MySSLSocketFactoryImpl.
java.lang.Exception - if unable to set the default SSL Socket Factory
implementation.public static java.lang.String getSSLSocketFactoryImpl()
public static void setSSLServerSocketFactoryImpl(java.lang.String sslServerSocketFactoryImplClass)
throws java.lang.Exception
sslServerSocketFactoryImplClass - The implementation class of SSL
Server Socket Factory. For example, if the implementation class
is called MySSLServerSocketFactoryImpl and it appears in the
com.radcrypto package, you should specify
com.radcrypto.MySSLServerSocketFactoryImpl.
java.lang.Exception - if unable to set the default SSL Server Socket Factory
implementation.public static java.lang.String getSSLServerSocketFactoryImpl()
public static void setKeyManagerAlgorithm(java.lang.String keyManagerAlgoName)
throws java.lang.Exception
keyManagerAlgoName - The name of the key manager algorithm to use.
For example, the default key manager algorithm use in SUN's
reference implementation of JSSE is "SunX509".
java.lang.Exception - if unable to set the default key manager algorithm
name.public static java.lang.String getKeyManagerAlgorithm()
public static void setTrustManagerAlgorithm(java.lang.String trustManagerAlgoName)
throws java.lang.Exception
trustManagerAlgoName - The name of the trust manager algorithm to
use. For example, the default trust manager algorithm use in
SUN's reference implementation of JSSE is "SunX509".
java.lang.Exception - if unable to set the default trust manager algorithm
name.public static java.lang.String getTrustManagerAlgorithm()
|
Sun Adapter for e-Mail API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||