public static class DatabaseClientFactory.SAMLAuthContext extends java.lang.Object implements DatabaseClientFactory.SecurityContext
Modifier and Type | Class and Description |
---|---|
static interface |
DatabaseClientFactory.SAMLAuthContext.AuthorizerCallback
A callback for getting a SAML assertions token from the IDP (Identity Provider).
|
static interface |
DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth
ExpiringSAMLAuth is used by SAMLAuthContext when renewing a SAML assertions token.
|
static interface |
DatabaseClientFactory.SAMLAuthContext.RenewerCallback
A callback for renewing the SAML assertions token with the IDP (Identity Provider)
by extending the expiration time.
|
Constructor and Description |
---|
SAMLAuthContext(DatabaseClientFactory.SAMLAuthContext.AuthorizerCallback authorizer)
Constructs a context for authorization using an authorizer callback.
|
SAMLAuthContext(DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth authorization,
DatabaseClientFactory.SAMLAuthContext.RenewerCallback renewer)
Constructs a context for authorization using a SAML assertions token
and a renewer callback.
|
SAMLAuthContext(java.lang.String authorizationToken)
Constructs a context for authorization using a SAML assertions token.
|
Modifier and Type | Method and Description |
---|---|
DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth |
getAuthorization()
Gets the object with the SAML assertions token and expiration when specified during
construction of the SAMLAuthContext or renewed by the renewer callback.
|
DatabaseClientFactory.SAMLAuthContext.AuthorizerCallback |
getAuthorizer()
Gets the authorizer callback when specified during construction of the SAMLAuthContext.
|
DatabaseClientFactory.SAMLAuthContext.RenewerCallback |
getRenewer()
Gets the renewer callback when specified during construction of the SAMLAuthContext.
|
javax.net.ssl.SSLContext |
getSSLContext()
Gets the SSL context when using SSL.
|
DatabaseClientFactory.SSLHostnameVerifier |
getSSLHostnameVerifier()
Gets the hostname verifier when using SSL.
|
java.lang.String |
getToken()
Gets the SAML authentication token
|
javax.net.ssl.X509TrustManager |
getTrustManager()
Gets the trust manager when using SSL.
|
static DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth |
newExpiringSAMLAuth(java.lang.String authorizationToken,
java.time.Instant expiry)
Constructs an ExpiringSAMLAuth with a SAML assertions token and the expiration time stamp
for the token.
|
void |
setSSLContext(javax.net.ssl.SSLContext context)
Deprecated.
|
void |
setSSLHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier verifier)
Specifies the host verifier for a client that verifies hosts for
additional security.
|
DatabaseClientFactory.SecurityContext |
withSSLContext(javax.net.ssl.SSLContext context)
Deprecated.
|
DatabaseClientFactory.SAMLAuthContext |
withSSLContext(javax.net.ssl.SSLContext context,
javax.net.ssl.X509TrustManager trustManager)
Configures the SSL context and trust manager for a SAML authorization context
|
DatabaseClientFactory.SAMLAuthContext |
withSSLHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier verifier)
Configures the SSL hostname verifier for a SAML authorization context
|
public SAMLAuthContext(java.lang.String authorizationToken)
authorizationToken
- the token with the SAML assertionspublic SAMLAuthContext(DatabaseClientFactory.SAMLAuthContext.AuthorizerCallback authorizer)
authorizer
- the callback returning the assertions tokenpublic SAMLAuthContext(DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth authorization, DatabaseClientFactory.SAMLAuthContext.RenewerCallback renewer)
authorization
- the expiring object with the SAML assertions token and expiryrenewer
- the renewer callbackpublic java.lang.String getToken()
public DatabaseClientFactory.SAMLAuthContext.AuthorizerCallback getAuthorizer()
public DatabaseClientFactory.SAMLAuthContext.RenewerCallback getRenewer()
public DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth getAuthorization()
public static DatabaseClientFactory.SAMLAuthContext.ExpiringSAMLAuth newExpiringSAMLAuth(java.lang.String authorizationToken, java.time.Instant expiry)
authorizationToken
- refers to the new SAML token.expiry
- refers to the expiration time stamp of authorizationToken.public DatabaseClientFactory.SAMLAuthContext withSSLContext(javax.net.ssl.SSLContext context, javax.net.ssl.X509TrustManager trustManager)
withSSLContext
in interface DatabaseClientFactory.SecurityContext
context
- - the SSLContext object required for the SSL connectiontrustManager
- - X509TrustManager with which we initialize the SSLContextpublic DatabaseClientFactory.SAMLAuthContext withSSLHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier verifier)
withSSLHostnameVerifier
in interface DatabaseClientFactory.SecurityContext
verifier
- the host verifierpublic javax.net.ssl.X509TrustManager getTrustManager()
public javax.net.ssl.SSLContext getSSLContext()
getSSLContext
in interface DatabaseClientFactory.SecurityContext
@Deprecated public void setSSLContext(javax.net.ssl.SSLContext context)
DatabaseClientFactory.SecurityContext
setSSLContext
in interface DatabaseClientFactory.SecurityContext
context
- - the SSLContext object required for the SSL connectionpublic DatabaseClientFactory.SSLHostnameVerifier getSSLHostnameVerifier()
getSSLHostnameVerifier
in interface DatabaseClientFactory.SecurityContext
public void setSSLHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier verifier)
DatabaseClientFactory.SecurityContext
setSSLHostnameVerifier
in interface DatabaseClientFactory.SecurityContext
verifier
- the host verifier@Deprecated public DatabaseClientFactory.SecurityContext withSSLContext(javax.net.ssl.SSLContext context)
DatabaseClientFactory.SecurityContext
withSSLContext
in interface DatabaseClientFactory.SecurityContext
context
- - the SSLContext object required for the SSL connectionCopyright © 2013-2020 MarkLogic Corporation.