com.filenet.api.authentication

Class UsernameCredentials



  • public class UsernameCredentials
    extends Credentials
    This class is a type of Credentials object which holds authentication materials consisting of a username and password.

    This class may only be used with the WSI transport, and in that case removes the requirement to perform a JAAS login.

    Since:
    Version 5.5.9.
    • Constructor Summary

      Constructors 
      Constructor and Description
      UsernameCredentials(java.lang.String userName, java.lang.String password)
      Constructs an instance with a specified username and password.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object other) 
      java.lang.String getPassword()
      Returns the password held by this object.
      java.lang.String getUsername()
      Returns the username held by this object.
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UsernameCredentials

        public UsernameCredentials(java.lang.String userName,
                                   java.lang.String password)
        Constructs an instance with a specified username and password.
        Parameters:
        userName - The user name.
        password - The password for the user.
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Returns the username held by this object. return The username.
      • getPassword

        public java.lang.String getPassword()
        Returns the password held by this object. return The password.
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

© Copyright IBM Corporation 2006, 2019. All rights reserved.