public class UsernameTokenValidator extends Object implements org.apache.cxf.sts.token.validator.TokenValidator
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.apache.wss4j.dom.validate.Validator> |
validators |
Constructor and Description |
---|
UsernameTokenValidator(Parser parser,
FailedLoginDelayer failedLoginDelayer) |
Modifier and Type | Method and Description |
---|---|
void |
addRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference) |
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.
|
void |
removeRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference) |
org.apache.cxf.sts.token.validator.TokenValidatorResponse |
validateToken(org.apache.cxf.sts.token.validator.TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public UsernameTokenValidator(Parser parser, FailedLoginDelayer failedLoginDelayer)
public void addRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference)
public void removeRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference)
public boolean canHandleToken(org.apache.cxf.sts.request.ReceivedToken validateTarget)
canHandleToken
in interface org.apache.cxf.sts.token.validator.TokenValidator
public boolean canHandleToken(org.apache.cxf.sts.request.ReceivedToken validateTarget, String realm)
canHandleToken
in interface org.apache.cxf.sts.token.validator.TokenValidator
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
This work is licensed under a Creative Commons Attribution 4.0 International License.