public class X509PathTokenValidator extends Object implements org.apache.cxf.sts.token.validator.TokenValidator
Modifier and Type | Field and Description |
---|---|
static String |
BASE64_ENCODING |
protected org.apache.wss4j.common.crypto.Merlin |
merlin |
static String |
X509_PKI_PATH |
Constructor and Description |
---|
X509PathTokenValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleToken(org.apache.cxf.sts.request.ReceivedToken validateTarget)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken
argument.
|
boolean |
canHandleToken(org.apache.cxf.sts.request.ReceivedToken validateTarget,
String realm)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken
argument.
|
String |
getSignaturePropertiesPath() |
void |
init()
Initialize Merlin crypto object.
|
void |
setSignaturePropertiesPath(String signaturePropertiesPath) |
void |
setSubjectConstraints(List<String> subjectConstraints)
Set a list of Strings corresponding to regular expression constraints on the subject DN of a
certificate
|
void |
setValidator(org.apache.wss4j.dom.validate.Validator validator)
Set the WSS4J Validator instance to use to validate the token.
|
org.apache.cxf.sts.token.validator.TokenValidatorResponse |
validateToken(org.apache.cxf.sts.token.validator.TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public static final String X509_PKI_PATH
public static final String BASE64_ENCODING
protected org.apache.wss4j.common.crypto.Merlin merlin
public void init()
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 boolean canHandleToken(org.apache.cxf.sts.request.ReceivedToken validateTarget)
canHandleToken
in interface org.apache.cxf.sts.token.validator.TokenValidator
validateTarget
- public boolean canHandleToken(org.apache.cxf.sts.request.ReceivedToken validateTarget, String realm)
canHandleToken
in interface org.apache.cxf.sts.token.validator.TokenValidator
validateTarget
- realm
- public org.apache.cxf.sts.token.validator.TokenValidatorResponse validateToken(org.apache.cxf.sts.token.validator.TokenValidatorParameters tokenParameters)
validateToken
in interface org.apache.cxf.sts.token.validator.TokenValidator
tokenParameters
- public String getSignaturePropertiesPath()
public void setSignaturePropertiesPath(String signaturePropertiesPath)
This work is licensed under a Creative Commons Attribution 4.0 International License.