Class UsernameTokenValidator

    • Constructor Detail

      • UsernameTokenValidator

        public UsernameTokenValidator()
    • Method Detail

      • setValidator

        public void setValidator​(org.apache.wss4j.dom.validate.Validator validator)
        Set the WSS4J Validator instance to use to validate the token.
        Parameters:
        validator - the WSS4J Validator instance to use to validate the token
      • setUsernameTokenRealmCodec

        public void setUsernameTokenRealmCodec​(UsernameTokenRealmCodec usernameTokenRealmCodec)
        Set the UsernameTokenRealmCodec instance to use to return a realm from a validated token
        Parameters:
        usernameTokenRealmCodec - the UsernameTokenRealmCodec instance to use to return a realm from a validated token
      • canHandleToken

        public boolean canHandleToken​(ReceivedToken validateTarget)
        Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.
        Specified by:
        canHandleToken in interface TokenValidator
      • canHandleToken

        public boolean canHandleToken​(ReceivedToken validateTarget,
                                      String realm)
        Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument. The realm is ignored in this token Validator.
        Specified by:
        canHandleToken in interface TokenValidator