Class SimplePrincipal
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.role.SimplePrincipal
-
- All Implemented Interfaces:
java.security.Principal
public class SimplePrincipal extends java.lang.Object implements java.security.PrincipalA principal wrapper of a single String entry.- Author:
- jonmv
-
-
Constructor Summary
Constructors Constructor Description SimplePrincipal(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejava.security.Principal
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object
-
-