public class X509TokenValidator extends Object implements TokenValidator
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE64_ENCODING |
static String |
X509_V3_TYPE |
| Constructor and Description |
|---|
X509TokenValidator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
TokenValidatorResponse |
validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public static final String X509_V3_TYPE
public static final String BASE64_ENCODING
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(ReceivedToken validateTarget)
canHandleToken in interface TokenValidatorpublic boolean canHandleToken(ReceivedToken validateTarget, String realm)
canHandleToken in interface TokenValidatorpublic TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
validateToken in interface TokenValidatorApache CXF