All Implemented Interfaces:
DatabaseClientFactory.SecurityContext
Enclosing class:
DatabaseClientFactory
A SAMLAuthContext is used for authorization
using SAML. It consists of a authorization token each with an
expiration time stamp. SAMLAuthContext asks for a new token with a
new expiration time stamp if the previous token expires and the
session is still valid.
Nested Class Summary
Nested Classes
static
interface
A callback for getting a SAML assertions token
from the IDP (Identity Provider).
static
interface
ExpiringSAMLAuth is used by SAMLAuthContext when
renewing a SAML assertions token.
static
interface
A callback for renewing the SAML assertions
token with the IDP (Identity Provider) by extending the expiration
time.
Constructor Summary
Constructors
Constructs a context for authorization using an
authorizer callback.
Constructs a context for authorization using a
SAML assertions token and a renewer callback.
Constructs a context for authorization using a
SAML assertions token.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Gets the object with the SAML assertions token
and expiration when specified during construction of the
SAMLAuthContext or renewed by the renewer callback.
Gets the authorizer callback when specified
during construction of the SAMLAuthContext.
Gets the renewer callback when specified during
construction of the SAMLAuthContext.
Gets the SSL context when using SSL.
Gets the hostname verifier when using SSL.
Gets the SAML authentication token
Gets the trust manager when using SSL.
Constructs an ExpiringSAMLAuth with a SAML
assertions token and the expiration time stamp for the token.
void
Specifies the host verifier for a client that
verifies hosts for additional security.
Configures the SSL context and trust manager for
a SAML authorization context
Configures the SSL hostname verifier for a SAML
authorization context
Methods
inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
SAMLAuthContext
public SAMLAuthContext (String authorizationToken)
Constructs a context for authorization using a
SAML assertions token.
Parameters:
authorizationToken - the token with the SAML
assertions
SAMLAuthContext
Constructs a context for authorization using an
authorizer callback. The authorizer must get a SAML assertions
token from the IDP (Identity Provider) for the first request and
when the current SAML assertions token is expiring.
Parameters:
authorizer - the callback returning the assertions
token
SAMLAuthContext
Constructs a context for authorization using a
SAML assertions token and a renewer callback. The renewer callback
must renew the SAML assertions token with the IDP (Identity
Provider) when the SAML assertions token is expiring.
Parameters:
authorization - the expiring object with the SAML
assertions token and expiry
renewer - the renewer callback
Method Details
getToken
Gets the SAML authentication token
Returns:
the SAML authentication token.
getAuthorizer
Gets the authorizer callback when specified
during construction of the SAMLAuthContext.
Returns:
the callback
getRenewer
Gets the renewer callback when specified during
construction of the SAMLAuthContext.
Returns:
the callback
getAuthorization
Gets the object with the SAML assertions token
and expiration when specified during construction of the
SAMLAuthContext or renewed by the renewer callback.
Returns:
the object with the assertions token and expiration
newExpiringSAMLAuth
Constructs an ExpiringSAMLAuth with a SAML
assertions token and the expiration time stamp for the token.
Parameters:
authorizationToken - refers to the new SAML
token.
expiry - refers to the expiration time stamp of
authorizationToken.
Returns:
an ExpiringSAMLAuth instance.
withSSLContext
Configures the SSL context and trust manager for
a SAML authorization context
Specified by:
withSSLContext in interface DatabaseClientFactory.SecurityContext
Parameters:
context - - the SSLContext object required for the
SSL connection
trustManager - - X509TrustManager with which we
initialize the SSLContext
Returns:
this SAML authorization context for chained configuration
withSSLHostnameVerifier
Configures the SSL hostname verifier for a SAML
authorization context
Specified by:
withSSLHostnameVerifier in
interface DatabaseClientFactory.SecurityContext
Parameters:
verifier - the host verifier
Returns:
this SAML authorization context for chained configuration
getTrustManager
Gets the trust manager when using SSL.
Specified by:
getTrustManager in
interface DatabaseClientFactory.SecurityContext
Returns:
the X509TrustManager used for authentication
getSSLContext
Gets the SSL context when using SSL.
Specified by:
getSSLContext in
interface DatabaseClientFactory.SecurityContext
Returns:
the SSLContext used for authentication
getSSLHostnameVerifier
Gets the hostname verifier when using SSL.
Specified by:
getSSLHostnameVerifier in
interface DatabaseClientFactory.SecurityContext
Returns:
the hostname verifier used for authentication
setSSLHostnameVerifier
Specifies the host verifier for a client that
verifies hosts for additional security.
Specified by:
setSSLHostnameVerifier in
interface DatabaseClientFactory.SecurityContext
Parameters:
verifier - the host verifier
Copyright (c) 2010-2026 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.