Class ORCIDPrincipal

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

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

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

      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Compares the specified Object with this ORCIDPrincipal for equality.
      java.lang.String getName()
      Return the name for this ORCIDPrincipal.
      int hashCode()
      Return a hash code for this ORCIDPrincipal.
      java.lang.String toString()
      Return a string representation of this ORCIDPrincipal.
      • 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

      • ORCIDPrincipal

        public ORCIDPrincipal​(java.lang.String name)
        Create a ORCIDPrincipal 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 ORCIDPrincipal.
        Specified by:
        getName in interface java.security.Principal
        Returns:
        the name.
      • toString

        public java.lang.String toString()
        Return a string representation of this ORCIDPrincipal.
        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 ORCIDPrincipal 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 ORCIDPrincipal.
      • hashCode

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