Class SSLContext
java.lang.Object
com.predic8.membrane.core.transport.ssl.SSLContext
- All Implemented Interfaces:
SSLProvider
- Direct Known Subclasses:
AcmeSSLContext,GeneratingSSLContext,StaticSSLContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyCipherOrdering(SSLParameters sslParameters) voidapplyCiphers(SSLSocket sslSocket) protected voidcheckChainValidity(List<Certificate> certs) protected voidcheckKeyMatchesCert(Key key, List<Certificate> certs) String[]getApplicationProtocols(Socket socket) static longgetMinimumValidity(List<Certificate> certs) abstract Stringabstract longstatic longgetValidFrom(List<Certificate> certs) abstract longabstract booleanvoidinit(SSLParser sslParser, SSLContext sslc) booleanbooleanvoidstop()Advises the SSL Provider to stop providing its services.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.predic8.membrane.core.transport.ssl.SSLProvider
createServerSocket, createSocket, createSocket, createSocket, createSocket, wrapAcceptedSocket
-
Field Details
-
getApplicationProtocols
-
setApplicationProtocols
-
ciphers
-
protocols
-
wantClientAuth
protected boolean wantClientAuth -
needClientAuth
protected boolean needClientAuth -
endpointIdentificationAlgorithm
-
-
Constructor Details
-
SSLContext
public SSLContext()
-
-
Method Details
-
init
-
wrap
- Throws:
IOException
-
applyCiphers
-
applyCipherOrdering
-
constructHostNamePattern
-
checkChainValidity
-
showSSLExceptions
public boolean showSSLExceptions()- Specified by:
showSSLExceptionsin interfaceSSLProvider
-
isUseAsDefault
public boolean isUseAsDefault() -
getApplicationProtocols
- Specified by:
getApplicationProtocolsin interfaceSSLProvider- Returns:
- the application protocols selected by the TLS server, or null elsewise (not a TLS connection, ALPN not supported, ...)
-
checkKeyMatchesCert
-
getValidFrom
-
getMinimumValidity
-
stop
public void stop()Description copied from interface:SSLProviderAdvises the SSL Provider to stop providing its services. (For most providers this will be a no-op.)No guarantee that this is only called once.
- Specified by:
stopin interfaceSSLProvider
-
hasKeyAndCertificate
public abstract boolean hasKeyAndCertificate()- Returns:
- whether this context has a working certificate and key
-
getValidFrom
public abstract long getValidFrom() -
getValidUntil
public abstract long getValidUntil() -
getPrometheusContextTypeName
-