@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.PostConstruct
public boolean verifyMasterPassword(char[] masterPass)
public KeyStore[] getKeyStores() throws IOException
IOException
public KeyStore getKeyStore() throws IOException
IOException
public KeyStore[] getTrustStores() throws IOException
IOException
public KeyStore getTrustStore() throws IOException
IOException
public KeyStore getMergedTrustStore()
public KeyManager[] getKeyManagers() throws Exception
Exception
public KeyManager[] getKeyManagers(String algorithm) throws IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
public TrustManager[] getTrustManagers() throws Exception
Exception
public 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
- Exception
public KeyStore.PrivateKeyEntry getPrivateKeyEntryFromTokenAlias(String certNickname) throws Exception
certNickname
- Exception
public 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.