Class ElixirPrincipal

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal

    public class ElixirPrincipal
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ElixirPrincipal​(java.lang.String name)
      Create a ElixirPrincipal with a name.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Compares the specified Object with this ElixirPrincipal for equality.
      java.lang.String getName()
      Return the name for this ElixirPrincipal.
      int hashCode()
      Return a hash code for this ElixirPrincipal.
      java.lang.String toString()
      Return a string representation of this ElixirPrincipal.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • ElixirPrincipal

        public ElixirPrincipal​(java.lang.String name)
        Create a ElixirPrincipal with a name.
        Parameters:
        name - the name for this principal.
        Throws:
        java.lang.NullPointerException - if the name is null.
    • Method Detail

      • getName

        public java.lang.String getName()
        Return the name for this ElixirPrincipal.
        Specified by:
        getName in interface java.security.Principal
        Returns:
        the name.
      • toString

        public java.lang.String toString()
        Return a string representation of this ElixirPrincipal.
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation.
      • equals

        public boolean equals​(java.lang.Object object)
        Compares the specified Object with this ElixirPrincipal for equality.
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - Object to be compared.
        Returns:
        true if the specified Object is equal equal to this ElixirPrincipal.
      • hashCode

        public int hashCode()
        Return a hash code for this ElixirPrincipal.
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code.