Class StaticSSLContext
java.lang.Object
com.predic8.membrane.core.transport.ssl.SSLContext
com.predic8.membrane.core.transport.ssl.StaticSSLContext
- All Implemented Interfaces:
SSLProvider
-
Field Summary
FieldsFields inherited from class com.predic8.membrane.core.transport.ssl.SSLContext
ciphers, endpointIdentificationAlgorithm, getApplicationProtocols, needClientAuth, protocols, setApplicationProtocols, wantClientAuth -
Constructor Summary
ConstructorsConstructorDescriptionStaticSSLContext(SSLParser sslParser, ResolverMap resourceResolver, String baseLocation) StaticSSLContext(SSLParser sslParser, SSLContext sslc) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCiphers(SSLServerSocket sslServerSocket) createServerSocket(int port, int backlog, InetAddress bindAddress) createSocket(String host, int port, int connectTimeout, String sniServerName, String[] applicationProtocols) createSocket(String host, int port, InetAddress addr, int localPort, int connectTimeout, String sniServerName, String[] applicationProtocols) createSocket(Socket socket, String host, int port, int connectTimeout, String sniServerName, String[] applicationProtocols) booleanlonglonginthashCode()booleanstatic KeyStoreopenKeyStore(Store store, char[] keyPass, ResolverMap resourceResolver, String baseLocation) wrapAcceptedSocket(Socket socket) Methods inherited from class com.predic8.membrane.core.transport.ssl.SSLContext
applyCipherOrdering, applyCiphers, checkChainValidity, checkKeyMatchesCert, constructHostNamePattern, getApplicationProtocols, getMinimumValidity, getValidFrom, init, isUseAsDefault, showSSLExceptions, stop, wrap
-
Field Details
-
PKCS_12
- See Also:
-
-
Constructor Details
-
StaticSSLContext
-
StaticSSLContext
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
openKeyStore
public static KeyStore openKeyStore(Store store, char[] keyPass, ResolverMap resourceResolver, String baseLocation) throws NoSuchAlgorithmException, CertificateException, IOException, KeyStoreException, NoSuchProviderException -
applyCiphers
-
createServerSocket
public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress) throws IOException - Throws:
IOException
-
wrapAcceptedSocket
-
createSocket
- Throws:
IOException
-
createSocket
public Socket createSocket(Socket socket, String host, int port, int connectTimeout, @Nullable String sniServerName, @Nullable String[] applicationProtocols) throws IOException host- relevant to verify the server cert onlyport- relevant to verify the server cert only- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, int connectTimeout, @Nullable String sniServerName, @Nullable String[] applicationProtocols) throws IOException - Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress addr, int localPort, int connectTimeout, @Nullable String sniServerName, @Nullable String[] applicationProtocols) throws IOException - Throws:
IOException
-
getPrometheusContextTypeName
- Specified by:
getPrometheusContextTypeNamein classSSLContext
-
hasKeyAndCertificate
public boolean hasKeyAndCertificate()- Specified by:
hasKeyAndCertificatein classSSLContext- Returns:
- whether this context has a working certificate and key
-
getValidFrom
public long getValidFrom()- Specified by:
getValidFromin classSSLContext
-
getValidUntil
public long getValidUntil()- Specified by:
getValidUntilin classSSLContext
-