@Service @Singleton public final class SSLUtils extends Object implements org.glassfish.hk2.api.PostConstruct
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTPS_OUTBOUND_KEY_ALIAS |
| Constructor and Description |
|---|
SSLUtils() |
public static final String HTTPS_OUTBOUND_KEY_ALIAS
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic boolean verifyMasterPassword(char[] masterPass)
public KeyStore[] getKeyStores() throws IOException
IOExceptionpublic KeyStore getKeyStore() throws IOException
IOExceptionpublic KeyStore[] getTrustStores() throws IOException
IOExceptionpublic KeyStore getTrustStore() throws IOException
IOExceptionpublic KeyStore getMergedTrustStore()
public KeyManager[] getKeyManagers() throws Exception
Exceptionpublic KeyManager[] getKeyManagers(String algorithm) throws IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
public TrustManager[] getTrustManagers() throws Exception
Exceptionpublic TrustManager[] getTrustManagers(String algorithm) throws IOException, KeyStoreException, NoSuchAlgorithmException
public void setAppclientSsl(AppClientSSL ssl)
public AppClientSSL getAppclientSsl()
public static String getKeyStoreType()
public static String getTrustStoreType()
public boolean isKeyAvailable()
public boolean isTokenKeyAlias(String certNickname) throws Exception
certNickname - Exceptionpublic KeyStore.PrivateKeyEntry getPrivateKeyEntryFromTokenAlias(String certNickname) throws Exception
certNickname - Exceptionpublic static void checkPermission(String key)
public String[] getSupportedCipherSuites()
public SSLSocketFactory getAdminSocketFactory(String alias, String protocol)
alias - the admin key aliasprotocol - the protocol or null, uses "TLS" if this argument is null.public SSLContext getAdminSSLContext(String alias, String protocol)
Copyright © 2019. All rights reserved.