Package org.apache.wss4j.stax.validate
Class UsernameTokenValidatorImpl
java.lang.Object
org.apache.wss4j.stax.validate.UsernameTokenValidatorImpl
- All Implemented Interfaces:
UsernameTokenValidator,Validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends UsernameSecurityToken & org.apache.xml.security.stax.securityToken.InboundSecurityToken>
Tvalidate(org.apache.wss4j.binding.wss10.UsernameTokenType usernameTokenType, TokenContext tokenContext) protected voidverifyCustomPassword(String username, org.apache.wss4j.binding.wss10.PasswordString passwordType, TokenContext tokenContext) Verify a UsernameToken containing a password of some unknown (but specified) password type.protected voidverifyDigestPassword(String username, org.apache.wss4j.binding.wss10.PasswordString passwordType, byte[] nonceVal, String created, TokenContext tokenContext) Verify a UsernameToken containing a password digest.protected voidverifyPlaintextPassword(String username, org.apache.wss4j.binding.wss10.PasswordString passwordType, TokenContext tokenContext) Verify a UsernameToken containing a plaintext password.
-
Constructor Details
-
UsernameTokenValidatorImpl
public UsernameTokenValidatorImpl()
-
-
Method Details
-
validate
public <T extends UsernameSecurityToken & org.apache.xml.security.stax.securityToken.InboundSecurityToken> T validate(org.apache.wss4j.binding.wss10.UsernameTokenType usernameTokenType, TokenContext tokenContext) throws org.apache.wss4j.common.ext.WSSecurityException - Specified by:
validatein interfaceUsernameTokenValidator- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
verifyDigestPassword
protected void verifyDigestPassword(String username, org.apache.wss4j.binding.wss10.PasswordString passwordType, byte[] nonceVal, String created, TokenContext tokenContext) throws org.apache.wss4j.common.ext.WSSecurityException Verify a UsernameToken containing a password digest.- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
verifyPlaintextPassword
protected void verifyPlaintextPassword(String username, org.apache.wss4j.binding.wss10.PasswordString passwordType, TokenContext tokenContext) throws org.apache.wss4j.common.ext.WSSecurityException Verify a UsernameToken containing a plaintext password.- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
verifyCustomPassword
protected void verifyCustomPassword(String username, org.apache.wss4j.binding.wss10.PasswordString passwordType, TokenContext tokenContext) throws org.apache.wss4j.common.ext.WSSecurityException Verify a UsernameToken containing a password of some unknown (but specified) password type.- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-