Class UserNameTokenSpec

  • All Implemented Interfaces:
    SecurityTokenSpec

    public class UserNameTokenSpec
    extends Object
    implements SecurityTokenSpec
    This class defines the specification for generating the Username security tokens. It implements SecurityTokenSpec interface.
    • Constructor Detail

      • UserNameTokenSpec

        public UserNameTokenSpec()
    • Method Detail

      • getPasswordType

        public String getPasswordType()
        Returns the password type.
        Returns:
        the password type.
      • setPasswordType

        public void setPasswordType​(String passwordType)
        Sets the password type.
        Parameters:
        passwordType - the password type.
      • setNonce

        public void setNonce​(boolean isNonce)
        Sets if the nonce should be used.
        Parameters:
        isNonce - true if the nonce should be used.
      • isCreateNonce

        public boolean isCreateNonce()
        Checks if the nonce should be used.
        Returns:
        true if the nonce should be used.
      • isCreateTimeStamp

        public boolean isCreateTimeStamp()
        Checks if the creation time stamp should be used.
        Returns:
        true if the create time stamp should be used.
      • setCreateTimeStamp

        public void setCreateTimeStamp​(boolean isTimeStamp)
        Sets if the create time stamp should be used.
        Parameters:
        isTimeStamp - true if the time stamp should be used.
      • setUserName

        public void setUserName​(String username)
        Sets the username
        Parameters:
        username - the username to be used in username token.
      • getUserName

        public String getUserName()
        Returns the username
        Returns:
        the user name.
      • setPassword

        public void setPassword​(String password)
        Sets the user password to be used in username token.
        Parameters:
        password - the password to be used in username token.
      • getPassword

        public String getPassword()
        Returns the password.
        Returns:
        the password.