public class SecurityTokenManagerImpl extends Object implements SecurityTokenManagerIF
SecurityTokenManagerIF
.Modifier and Type | Field and Description |
---|---|
protected static boolean |
isLocal |
Constructor and Description |
---|
SecurityTokenManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkForLocal()
Checks if the service is available locally.
|
String |
getSAMLAuthenticationToken(String senderIdentity)
Returns the SAML Authentication Token.
|
String |
getSAMLAuthorizationToken(String senderIdentity,
String invocatorSession,
String resourceID,
boolean encryptedID,
boolean includeAuthN,
boolean includeResourceAccessStatement,
String recipientProviderID)
Returns the SAML Authorization Token.
|
String |
getX509CertificateToken()
Returns the Certificate Token.
|
void |
initialization(String sessionID)
Initializes the SecurityTokenManager.
|
void |
setCertificate(String cert,
boolean alias)
Sets the Certificate.
|
public void initialization(String sessionID) throws SecurityTokenException
initialization
in interface SecurityTokenManagerIF
sessionID
- the session id.SecurityTokenException
- if there is an error.public void setCertificate(String cert, boolean alias) throws SecurityTokenException
setCertificate
in interface SecurityTokenManagerIF
cert
- the Certificate String.alias
- if true then Certificate Alias will be set.SecurityTokenException
- if there is an error.public void checkForLocal()
checkForLocal
in interface SecurityTokenManagerIF
public String getX509CertificateToken() throws SecurityTokenException
getX509CertificateToken
in interface SecurityTokenManagerIF
SecurityTokenException
- if there is an error.public String getSAMLAuthenticationToken(String senderIdentity) throws SecurityTokenException, SAMLException
getSAMLAuthenticationToken
in interface SecurityTokenManagerIF
senderIdentity
- the sender's identity.SecurityTokenException
- if there is an error.SAMLException
- if there is an error.public String getSAMLAuthorizationToken(String senderIdentity, String invocatorSession, String resourceID, boolean encryptedID, boolean includeAuthN, boolean includeResourceAccessStatement, String recipientProviderID) throws SecurityTokenException, SAMLException
getSAMLAuthorizationToken
in interface SecurityTokenManagerIF
senderIdentity
- the identity of the sender.invocatorSession
- the session identifierresourceID
- the resource Identifier.encryptedID
- boolean value to determine if the identifier
is encrypted.includeAuthN
- boolean value to deteremine if the authentication
information should be included.includeResourceAccessStatement
- if true, a
ResourceAccessStatement
will be included in the
Assertion (for AuthorizeRequester
directive). If
false, a SessionContextStatement
will be included i
the Assertion (for AuthenticationSessionContext
directive). In the case when both AuthorizeRequester
AuthenticationSessionContext directive need to be
handled, use "true" as parameter here since the
SessionContext
will always be included in the
ResourceAccessStatement
.recipientProviderID
- recipient's provider ID.SecurityTokenException
- if there is an error.SAMLException
- if there is an error.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.