|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.sts.token.validator.SAMLTokenValidator
public class SAMLTokenValidator
Validate a SAML Assertion. It is valid if it was issued and signed by this STS.
Constructor Summary | |
---|---|
SAMLTokenValidator()
|
Method Summary | |
---|---|
boolean |
canHandleToken(ReceivedToken validateTarget)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument. |
boolean |
canHandleToken(ReceivedToken validateTarget,
String realm)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument. |
SAMLRoleParser |
getSamlRoleParser()
|
void |
setSamlRealmCodec(SAMLRealmCodec samlRealmCodec)
Set the SAMLRealmCodec instance to use to return a realm from a validated token |
void |
setSamlRoleParser(SAMLRoleParser samlRoleParser)
|
void |
setSubjectConstraints(List<String> subjectConstraints)
Set a list of Strings corresponding to regular expression constraints on the subject DN of a certificate that was used to sign a received Assertion |
void |
setValidator(org.apache.wss4j.dom.validate.Validator validator)
Set the WSS4J Validator instance to use to validate the token. |
protected void |
validateAssertion(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
Validate the assertion against schemas/profiles |
protected boolean |
validateConditions(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion,
ReceivedToken validateTarget)
|
TokenValidatorResponse |
validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMLTokenValidator()
Method Detail |
---|
public void setSubjectConstraints(List<String> subjectConstraints)
public void setValidator(org.apache.wss4j.dom.validate.Validator validator)
validator
- the WSS4J Validator instance to use to validate the tokenpublic void setSamlRealmCodec(SAMLRealmCodec samlRealmCodec)
samlRealmCodec
- the SAMLRealmCodec instance to use to return a realm from a validated tokenpublic boolean canHandleToken(ReceivedToken validateTarget)
canHandleToken
in interface TokenValidator
public boolean canHandleToken(ReceivedToken validateTarget, String realm)
canHandleToken
in interface TokenValidator
public TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
validateToken
in interface TokenValidator
protected void validateAssertion(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected boolean validateConditions(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion, ReceivedToken validateTarget)
public SAMLRoleParser getSamlRoleParser()
public void setSamlRoleParser(SAMLRoleParser samlRoleParser)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |