org.apache.wss4j.stax.validate
Class UsernameTokenValidatorImpl

java.lang.Object
  extended by org.apache.wss4j.stax.validate.UsernameTokenValidatorImpl
All Implemented Interfaces:
UsernameTokenValidator, Validator

public class UsernameTokenValidatorImpl
extends Object
implements UsernameTokenValidator


Constructor Summary
UsernameTokenValidatorImpl()
           
 
Method Summary
<T extends UsernameSecurityToken & org.apache.xml.security.stax.securityToken.InboundSecurityToken>
T
validate(UsernameTokenType usernameTokenType, TokenContext tokenContext)
           
protected  void verifyCustomPassword(String username, PasswordString passwordType, TokenContext tokenContext)
          Verify a UsernameToken containing a password of some unknown (but specified) password type.
protected  void verifyDigestPassword(String username, PasswordString passwordType, byte[] nonceVal, String created, TokenContext tokenContext)
          Verify a UsernameToken containing a password digest.
protected  void verifyPlaintextPassword(String username, PasswordString passwordType, TokenContext tokenContext)
          Verify a UsernameToken containing a plaintext password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameTokenValidatorImpl

public UsernameTokenValidatorImpl()
Method Detail

validate

public <T extends UsernameSecurityToken & org.apache.xml.security.stax.securityToken.InboundSecurityToken> T validate(UsernameTokenType usernameTokenType,
                                                                                                                     TokenContext tokenContext)
                                                                                                          throws WSSecurityException
Specified by:
validate in interface UsernameTokenValidator
Throws:
WSSecurityException

verifyDigestPassword

protected void verifyDigestPassword(String username,
                                    PasswordString passwordType,
                                    byte[] nonceVal,
                                    String created,
                                    TokenContext tokenContext)
                             throws WSSecurityException
Verify a UsernameToken containing a password digest.

Throws:
WSSecurityException

verifyPlaintextPassword

protected void verifyPlaintextPassword(String username,
                                       PasswordString passwordType,
                                       TokenContext tokenContext)
                                throws WSSecurityException
Verify a UsernameToken containing a plaintext password.

Throws:
WSSecurityException

verifyCustomPassword

protected void verifyCustomPassword(String username,
                                    PasswordString passwordType,
                                    TokenContext tokenContext)
                             throws WSSecurityException
Verify a UsernameToken containing a password of some unknown (but specified) password type.

Throws:
WSSecurityException


Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.