Class Credential

  • All Implemented Interfaces:
    java.io.Serializable

    public class Credential
    extends java.lang.Object
    implements java.io.Serializable
    A class represents a credential. A credential contains information that identifies a user. In this case, identifier and password are used.
    Version:
    $Revision$, $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Credential​(java.lang.String id, java.lang.String password)
      Constructs credential object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getIdentifier()
      Retrieves identifier.
      java.lang.String getPassword()
      Retrieves password.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Credential

        public Credential​(java.lang.String id,
                          java.lang.String password)
        Constructs credential object.
        Parameters:
        id - user id
        password - user password
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Retrieves identifier.
        Returns:
        user id
      • getPassword

        public java.lang.String getPassword()
        Retrieves password.
        Returns:
        user password