public class STSTokenValidator extends Object implements Validator
Constructor and Description |
---|
STSTokenValidator() |
STSTokenValidator(boolean alwaysValidateToSts)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
STSClient |
getStsClient() |
TokenStore |
getTokenStore() |
boolean |
isDisableCaching() |
boolean |
isUseIssueBinding() |
boolean |
isUseOnBehalfOf() |
protected boolean |
isValidatedLocally(Credential credential,
RequestData data) |
void |
setDisableCaching(boolean disableCaching) |
void |
setStsClient(STSClient stsClient) |
void |
setTokenStore(TokenStore tokenStore) |
void |
setUseIssueBinding(boolean useIssueBinding) |
void |
setUseOnBehalfOf(boolean useOnBehalfOf) |
Credential |
validate(Credential credential,
RequestData data)
Validate the credential argument.
|
Credential |
validateWithSTS(Credential credential,
Message message) |
public STSTokenValidator()
public STSTokenValidator(boolean alwaysValidateToSts)
alwaysValidateToSts
- whether to always validate the token to the STSpublic Credential validate(Credential credential, RequestData data) throws WSSecurityException
Validator
validate
in interface Validator
credential
- the Credential to be validateddata
- the RequestData associated with the requestWSSecurityException
- on a failed validationpublic Credential validateWithSTS(Credential credential, Message message) throws WSSecurityException
WSSecurityException
protected boolean isValidatedLocally(Credential credential, RequestData data) throws WSSecurityException
WSSecurityException
public boolean isUseIssueBinding()
public void setUseIssueBinding(boolean useIssueBinding)
public boolean isUseOnBehalfOf()
public void setUseOnBehalfOf(boolean useOnBehalfOf)
public STSClient getStsClient()
public void setStsClient(STSClient stsClient)
public TokenStore getTokenStore()
public void setTokenStore(TokenStore tokenStore)
public boolean isDisableCaching()
public void setDisableCaching(boolean disableCaching)
Copyright © 2017 JBoss by Red Hat. All rights reserved.