public class SAML2FailoverUtils extends Object
isSAML2FailoverEnabled()
call before accessing the token repository.Modifier and Type | Method and Description |
---|---|
static void |
deleteSAML2Token(String primaryKey)
Helper method for accessing the SAML2 Token Repository, should only be used when SAML2 failover is enabled.
|
static boolean |
isSAML2FailoverEnabled()
Checks whether SAML2 failover is enabled.
|
static Object |
retrieveSAML2Token(String primaryKey)
Helper method for accessing the SAML2 Token Repository, should only be used when SAML2 failover is enabled.
|
static List |
retrieveSAML2TokensWithSecondaryKey(String secondaryKey)
Helper method for accessing the SAML2 Token Repository, should only be used when SAML2 failover is enabled.
|
static void |
saveSAML2Token(String primaryKey,
String secondaryKey,
Object samlObj,
long expirationTime)
Helper method for accessing the SAML2 Token Repository, should only be used when SAML2 failover is enabled.
|
static void |
saveSAML2TokenWithoutSecondaryKey(String primaryKey,
Object samlObj,
long expirationTime)
Helper method for accessing the SAML2 Token Repository, should only be used when SAML2 failover is enabled.
|
public static boolean isSAML2FailoverEnabled()
public static void saveSAML2TokenWithoutSecondaryKey(String primaryKey, Object samlObj, long expirationTime) throws SAML2TokenRepositoryException
primaryKey
- The primary key of SAML2 object to savesamlObj
- The SAML2 object to saveexpirationTime
- Expiration time in seconds from epoch.SAML2TokenRepositoryException
- if there was a problem accessing the SAML2 Token Repositorypublic static void saveSAML2Token(String primaryKey, String secondaryKey, Object samlObj, long expirationTime) throws SAML2TokenRepositoryException
primaryKey
- The primary key of the SAML2 object to savesecondaryKey
- Secondary key, can be nullsamlObj
- The SAML2 object to saveexpirationTime
- Expiration time in seconds from epoch.SAML2TokenRepositoryException
- if there was a problem accessing the SAML2 Token Repositorypublic static Object retrieveSAML2Token(String primaryKey) throws SAML2TokenRepositoryException
primaryKey
- The primary key of SAML2 object to retrieveSAML2TokenRepositoryException
- if there was a problem accessing the SAML2 Token Repositorypublic static List retrieveSAML2TokensWithSecondaryKey(String secondaryKey) throws SAML2TokenRepositoryException
secondaryKey
- Secondary key to use when searching for matching tokensSAML2TokenRepositoryException
- if there was a problem accessing the SAML2 Token Repositorypublic static void deleteSAML2Token(String primaryKey) throws SAML2TokenRepositoryException
primaryKey
- The primary key of SAML2 object to deleteSAML2TokenRepositoryException
- if there was a problem accessing the SAML2 Token RepositoryCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.