Interface: java.security.Principal

  • public interface Principal
This interface represents the abstract notion of a principal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
Authors:
@author Li Gong
See:
@see java.security.cert.X509Certificate

Methods

  • equalstop

    public boolean equals(Object another)
    Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.
    Parameters:
    @param another principal to compare with.
    Return:
    @return true if the principal passed in is the same as that encapsulated by this principal, and false otherwise.
    Google Code Search
    Stack Overflow
  • getNametop

    public String getName()
    Returns the name of this principal.
    Return:
    @return the name of this principal.
    Google Code Search
    Stack Overflow
  • hashCodetop

    public int hashCode()
    Returns a hashcode for this principal.
    Return:
    @return a hashcode for this principal.
    Google Code Search
    Stack Overflow
  • toStringtop

    public String toString()
    Returns a string representation of this principal.
    Return:
    @return a string representation of this principal.
    Google Code Search
    Stack Overflow