Class UsernameTokenValidatorImpl

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

public class UsernameTokenValidatorImpl extends Object implements UsernameTokenValidator
  • 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:
      validate in interface UsernameTokenValidator
      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