public class ORCIDPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable
| Constructor and Description |
|---|
ORCIDPrincipal(java.lang.String name)
Create a ORCIDPrincipal with a name.
|
| Modifier and Type | Method and 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. |
public ORCIDPrincipal(java.lang.String name)
name - the name for this principal.java.lang.NullPointerException - if the name is null.public java.lang.String getName()
ORCIDPrincipal.getName in interface java.security.Principalpublic java.lang.String toString()
ORCIDPrincipal.toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
ORCIDPrincipal for
equality.equals in interface java.security.Principalequals in class java.lang.Objectobject - Object to be compared.ORCIDPrincipal.public int hashCode()
ORCIDPrincipal.hashCode in interface java.security.PrincipalhashCode in class java.lang.Object