public class TokenServiceConsumerImpl extends Object implements TokenServiceConsumer
TokenServiceConsumer
Modifier and Type | Method and Description |
---|---|
void |
cancelToken(String tokenId,
String callerSSOTokenString)
Invoke the TokenService to cancel a token.
|
String |
getOpenIdConnectToken(String ssoTokenString,
String stsInstanceId,
String realm,
String authnContextClassRef,
Set<String> authnMethodReferences,
long authnTimeInSeconds,
String nonce,
String callerSSOTokenString)
Invoke the TokenService to produce a OpenId Connect Token
|
String |
getSAML2BearerAssertion(String ssoTokenString,
String stsInstanceId,
String realm,
String authnContextClassRef,
String callerSSOTokenString)
Invoke the TokenService to produce a SAML2 Bearer assertion
|
String |
getSAML2HolderOfKeyAssertion(String ssoTokenString,
String stsInstanceId,
String realm,
String authnContextClassRef,
ProofTokenState proofTokenState,
String callerSSOTokenString)
Invoke the TokenService to produce a SAML2 Bearer assertion
|
String |
getSAML2SenderVouchesAssertion(String ssoTokenString,
String stsInstanceId,
String realm,
String authnContextClassRef,
String callerSSOTokenString)
Invoke the TokenService to produce a SAML2 Bearer assertion
|
boolean |
validateToken(String tokenId,
String callerSSOTokenString)
Invoke the TokenService to validate a token.
|
public String getSAML2BearerAssertion(String ssoTokenString, String stsInstanceId, String realm, String authnContextClassRef, String callerSSOTokenString) throws TokenCreationException
TokenServiceConsumer
getSAML2BearerAssertion
in interface TokenServiceConsumer
ssoTokenString
- The session id corresponding to the to-be-asserted subjectstsInstanceId
- The instance id of the STS making the invocationrealm
- The realm of the STS making the invocationauthnContextClassRef
- The SAML2 AuthnContext class ref to be included in the SAML2 assertioncallerSSOTokenString
- The session id corresponding to the caller. The TokenService will be protected
by an authz module.TokenCreationException
- if the token could not be created.public String getSAML2SenderVouchesAssertion(String ssoTokenString, String stsInstanceId, String realm, String authnContextClassRef, String callerSSOTokenString) throws TokenCreationException
TokenServiceConsumer
getSAML2SenderVouchesAssertion
in interface TokenServiceConsumer
ssoTokenString
- The session id corresponding to the to-be-asserted subjectstsInstanceId
- The instance id of the STS making the invocationrealm
- The realm of the STS making the invocationauthnContextClassRef
- The SAML2 AuthnContext class ref to be included in the SAML2 assertioncallerSSOTokenString
- The session id corresponding to the caller. The TokenService will be protected
by an authz module.TokenCreationException
- if the token could not be created.public String getSAML2HolderOfKeyAssertion(String ssoTokenString, String stsInstanceId, String realm, String authnContextClassRef, ProofTokenState proofTokenState, String callerSSOTokenString) throws TokenCreationException
TokenServiceConsumer
getSAML2HolderOfKeyAssertion
in interface TokenServiceConsumer
ssoTokenString
- The session id corresponding to the to-be-asserted subjectstsInstanceId
- The instance id of the STS making the invocationrealm
- The realm of the STS making the invocationauthnContextClassRef
- The SAML2 AuthnContext class ref to be included in the SAML2 assertionproofTokenState
- The ProofTokenState used as the proof token in the HoK assertion.callerSSOTokenString
- The session id corresponding to the caller. The TokenService will be protected
by an authz module.TokenCreationException
- if the token could not be created.public String getOpenIdConnectToken(String ssoTokenString, String stsInstanceId, String realm, String authnContextClassRef, Set<String> authnMethodReferences, long authnTimeInSeconds, String nonce, String callerSSOTokenString) throws TokenCreationException
TokenServiceConsumer
getOpenIdConnectToken
in interface TokenServiceConsumer
ssoTokenString
- The session id corresponding to the to-be-asserted subjectstsInstanceId
- The instance id of the STS making the invocationrealm
- The realm of the STS making the invocationauthnContextClassRef
- The OpenIdConnect AuthnContext class ref to be included in the OIDC token. Corresponds
to the acr claim specified here http://openid.net/specs/openid-connect-core-1_0.html#IDToken
Can be null.authnMethodReferences
- State corresponding to the amr claim included in the OIDC token as defined here:
http://openid.net/specs/openid-connect-core-1_0.html#IDToken. Can be nullauthnTimeInSeconds
- used to set the auth_time claim as specified here:
http://openid.net/specs/openid-connect-core-1_0.html#IDToken.nonce
- Used to set the nonce claim as specified here:
http://openid.net/specs/openid-connect-core-1_0.html#IDToken. This value will be taken from the original
sts invocation.callerSSOTokenString
- The session id corresponding to the caller. The TokenService will be protected
by an authz module.TokenCreationException
- if the token could not be created.public boolean validateToken(String tokenId, String callerSSOTokenString) throws TokenValidationException
TokenServiceConsumer
validateToken
in interface TokenServiceConsumer
tokenId
- The id of the to-be-canceled token.callerSSOTokenString
- The session id corresponding to the caller. The TokenService will be protected
by an authz module.TokenValidationException
public void cancelToken(String tokenId, String callerSSOTokenString) throws TokenCancellationException
TokenServiceConsumer
cancelToken
in interface TokenServiceConsumer
tokenId
- The id of the to-be-canceled token.callerSSOTokenString
- The session id corresponding to the caller. The TokenService will be protected
by an authz module.TokenCancellationException
- in case the token could not be canceled.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.