|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.server.pluggable.SecuritySupport
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public class SecuritySupportImpl
This implements SecuritySupport used in PluggableFeatureFactory.
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
_logger
|
protected static boolean |
initialized
|
protected static java.util.List<char[]> |
keyStorePasswords
|
protected static java.util.List<java.security.KeyStore> |
keyStores
|
protected static java.util.List<java.lang.String> |
tokenNames
|
protected static java.util.List<java.security.KeyStore> |
trustStores
|
| Fields inherited from class com.sun.enterprise.server.pluggable.SecuritySupport |
|---|
KEYSTORE_PASS_PROP, KEYSTORE_TYPE_PROP, keyStoreProp, TRUSTSTORE_PASS_PROP, TRUSTSTORE_TYPE_PROP, trustStoreProp |
| Constructor Summary | |
|---|---|
|
SecuritySupportImpl()
|
protected |
SecuritySupportImpl(boolean init)
|
| Method Summary | |
|---|---|
void |
checkPermission(java.lang.String key)
Check permission for the given key. |
javax.net.ssl.KeyManager[] |
getKeyManagers(java.lang.String algorithm)
|
java.security.KeyStore |
getKeyStore(java.lang.String token)
|
java.security.KeyStore[] |
getKeyStores()
This method returns an array of keystores containing keys and certificates. |
java.security.PrivateKey |
getPrivateKeyForAlias(java.lang.String alias,
int keystoreIndex)
Gets the PrivateKey for specified alias from the corresponding keystore indicated by the index. |
java.lang.String[] |
getTokenNames()
This method returns an array of token names in order corresponding to array of keystores. |
javax.net.ssl.TrustManager[] |
getTrustManagers(java.lang.String algorithm)
|
java.security.KeyStore |
getTrustStore(java.lang.String token)
|
java.security.KeyStore[] |
getTrustStores()
This method returns an array of truststores containing certificates. |
boolean |
isACC()
|
boolean |
isNotServerORACC()
|
java.security.KeyStore |
loadNullStore(java.lang.String type,
int index)
|
protected static void |
loadStores(java.lang.String tokenName,
java.security.Provider provider,
java.lang.String keyStoreFile,
char[] keyStorePass,
java.lang.String keyStoreType,
java.lang.String trustStoreFile,
char[] trustStorePass,
java.lang.String trustStoreType)
This method will load keystore and truststore and add into corresponding list. |
void |
synchronizeKeyFile(java.lang.Object configContext,
java.lang.String fileRealmName)
TODO:V3:Cluster ConfigContext is no longer present so find out what this needs to be |
boolean |
verifyMasterPassword(char[] masterPass)
|
| Methods inherited from class com.sun.enterprise.server.pluggable.SecuritySupport |
|---|
getDefaultInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger _logger
protected static boolean initialized
protected static final java.util.List<java.security.KeyStore> keyStores
protected static final java.util.List<java.security.KeyStore> trustStores
protected static final java.util.List<char[]> keyStorePasswords
protected static final java.util.List<java.lang.String> tokenNames
| Constructor Detail |
|---|
public SecuritySupportImpl()
protected SecuritySupportImpl(boolean init)
| Method Detail |
|---|
protected static void loadStores(java.lang.String tokenName,
java.security.Provider provider,
java.lang.String keyStoreFile,
char[] keyStorePass,
java.lang.String keyStoreType,
java.lang.String trustStoreFile,
char[] trustStorePass,
java.lang.String trustStoreType)
tokenName - provider - keyStorePass - keyStoreFile - keyStoreType - trustStorePass - trustStoreFile - trustStoreType - public java.security.KeyStore[] getKeyStores()
getKeyStores in class SecuritySupport
public java.security.KeyStore loadNullStore(java.lang.String type,
int index)
throws java.security.KeyStoreException,
java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException
loadNullStore in class SecuritySupportjava.security.KeyStoreException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public javax.net.ssl.KeyManager[] getKeyManagers(java.lang.String algorithm)
throws java.io.IOException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException
getKeyManagers in class SecuritySupportjava.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
public javax.net.ssl.TrustManager[] getTrustManagers(java.lang.String algorithm)
throws java.io.IOException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException
getTrustManagers in class SecuritySupportjava.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmExceptionpublic java.security.KeyStore[] getTrustStores()
getTrustStores in class SecuritySupportpublic boolean verifyMasterPassword(char[] masterPass)
verifyMasterPassword in class SecuritySupportpublic java.lang.String[] getTokenNames()
getTokenNames in class SecuritySupportpublic java.security.KeyStore getKeyStore(java.lang.String token)
getKeyStore in class SecuritySupporttoken -
public java.security.KeyStore getTrustStore(java.lang.String token)
getTrustStore in class SecuritySupporttoken -
public void synchronizeKeyFile(java.lang.Object configContext,
java.lang.String fileRealmName)
throws java.lang.Exception
SecuritySupport
synchronizeKeyFile in class SecuritySupportjava.lang.Exceptionpublic void checkPermission(java.lang.String key)
SecuritySupport
checkPermission in class SecuritySupportpublic boolean isACC()
public boolean isNotServerORACC()
public java.security.PrivateKey getPrivateKeyForAlias(java.lang.String alias,
int keystoreIndex)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException
SecuritySupport
getPrivateKeyForAlias in class SecuritySupportalias - Alias for which the PrivateKey is desired.keystoreIndex - Index of the keystore.
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||