public class STSTokenValidator extends Object implements org.apache.wss4j.dom.validate.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(org.apache.wss4j.dom.validate.Credential credential,
org.apache.wss4j.dom.handler.RequestData data) |
void |
setDisableCaching(boolean disableCaching) |
void |
setStsClient(STSClient stsClient) |
void |
setTokenStore(TokenStore tokenStore) |
void |
setUseIssueBinding(boolean useIssueBinding) |
void |
setUseOnBehalfOf(boolean useOnBehalfOf) |
org.apache.wss4j.dom.validate.Credential |
validate(org.apache.wss4j.dom.validate.Credential credential,
org.apache.wss4j.dom.handler.RequestData data) |
org.apache.wss4j.dom.validate.Credential |
validateWithSTS(org.apache.wss4j.dom.validate.Credential credential,
Message message) |
public STSTokenValidator()
public STSTokenValidator(boolean alwaysValidateToSts)
alwaysValidateToSts
- whether to always validate the token to the STSpublic org.apache.wss4j.dom.validate.Credential validate(org.apache.wss4j.dom.validate.Credential credential, org.apache.wss4j.dom.handler.RequestData data) throws org.apache.wss4j.common.ext.WSSecurityException
validate
in interface org.apache.wss4j.dom.validate.Validator
org.apache.wss4j.common.ext.WSSecurityException
public org.apache.wss4j.dom.validate.Credential validateWithSTS(org.apache.wss4j.dom.validate.Credential credential, Message message) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected boolean isValidatedLocally(org.apache.wss4j.dom.validate.Credential credential, org.apache.wss4j.dom.handler.RequestData data) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.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)
Apache CXF