java.lang.Object
org.postgresql.pljava.RolePrincipal
- All Implemented Interfaces:
Serializable
,Principal
- Direct Known Subclasses:
RolePrincipal.Authenticated
,RolePrincipal.Current
,RolePrincipal.Outer
,RolePrincipal.Session
- See Also:
-
Field Details
-
m_name
-
-
Method Details
-
equals
Compare twoRolePrincipal
s for equality, with special treatment for thePUBLIC
ones.Each concrete subclass of
RolePrincipal
has a singletonPUBLIC
instance, which will only compare equal to itself (this method is not the place to say everything matchesPUBLIC
, becauseequals
should be symmetric, and security checks should not be). Otherwise, the result is that ofIdentifier.equals
.Note that these
PUBLIC
instances are distinct from the wild-card principal names that can appear in the Java policy file: those are handled without ever instantiating the class, and simply match any principal with the identically-spelled class name. -
toString
-
hashCode
public int hashCode() -
getName
-