Package org.apache.wss4j.dom.validate
Class JAASUsernameTokenValidator
java.lang.Object
org.apache.wss4j.dom.validate.JAASUsernameTokenValidator
- All Implemented Interfaces:
Validator
This class validates a processed UsernameToken, extracted from the Credential passed to
the validate method.
Username/password validation is delegated to JAAS LoginContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CallbackHandlergetCallbackHandler(String name, String password) voidsetContextName(String name) validate(Credential credential, RequestData data) Validate the credential argument.
-
Constructor Details
-
JAASUsernameTokenValidator
public JAASUsernameTokenValidator()
-
-
Method Details
-
setContextName
-
getContextName
-
validate
public Credential validate(Credential credential, RequestData data) throws org.apache.wss4j.common.ext.WSSecurityException Validate the credential argument. It must contain a non-null UsernameToken. A CallbackHandler implementation is also required to be set. Validator If the password type is either digest or plaintext, it extracts a password from the CallbackHandler and then compares the passwords appropriately. If the password is null it queries a hook to allow the user to validate UsernameTokens of this type. -
getCallbackHandler
-