Package com.yahoo.security.tls
Class TransportSecurityUtils
java.lang.Object
com.yahoo.security.tls.TransportSecurityUtils
Utility class for retrieving
TransportSecurityOptions from the system.- Author:
- bjorncs
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilityModegetConfigFile(Map<String, String> envVariables) static Optional<ConnectionAuthContext>static Optional<ConnectionAuthContext>static Optional<ConnectionAuthContext>static AuthorizationModestatic AuthorizationModegetInsecureAuthorizationMode(Map<String, String> envVariables) static MixedModestatic MixedModegetInsecureMixedMode(Map<String, String> envVariables) static Optional<TransportSecurityOptions>static Optional<TransportSecurityOptions>getOptions(Map<String, String> envVariables) static Optional<TlsContext>static booleanstatic booleanisTransportSecurityEnabled(Map<String, String> envVariables)
-
Field Details
-
CONFIG_FILE_ENVIRONMENT_VARIABLE
- See Also:
-
INSECURE_MIXED_MODE_ENVIRONMENT_VARIABLE
- See Also:
-
INSECURE_AUTHORIZATION_MODE_ENVIRONMENT_VARIABLE
- See Also:
-
CAPABILITIES_ENV_VAR
- See Also:
-
-
Method Details
-
isTransportSecurityEnabled
public static boolean isTransportSecurityEnabled() -
isTransportSecurityEnabled
-
getInsecureMixedMode
-
getInsecureMixedMode
-
getInsecureAuthorizationMode
-
getInsecureAuthorizationMode
-
getCapabilityMode
-
getConfigFile
-
getConfigFile
-
getOptions
-
getOptions
-
getSystemTlsContext
- Returns:
- The shared
TlsContextfor the Vespa system environment
-
getConnectionAuthContext
- Returns:
ConnectionAuthContextinstance ifSSLEnginewas constructed by aTlsContext. Only available after TLS handshake is completed.
-
getConnectionAuthContext
- See Also:
-
getConnectionAuthContext
- See Also:
-