public class MembershipPrincipal extends Object implements Principal, Serializable
Principal
interface
and represents an Membership user.
Principals such as this MembershipPrincipal
may be associated with a particular Subject
to augment that Subject
with an additional
identity. Refer to the Subject
class for more information
on how to achieve this. Authorization decisions can then be based upon
the Principals associated with a Subject
.
Constructor and Description |
---|
MembershipPrincipal(String name)
Creates a
MembershipPrincipal with a Membership user name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares the specified Object with this
MembershipPrincipal
for equality. |
String |
getName()
Returns the Membership user name for this
MembershipPrincipal . |
int |
hashCode()
Returns a hash code for this
MembershipPrincipal . |
String |
toString()
Returns a string representation of this
MembershipPrincipal . |
public MembershipPrincipal(String name)
MembershipPrincipal
with a Membership user name.name
- the Membership user name for this user.NullPointerException
- if the name
is
null
.public String getName()
MembershipPrincipal
.public String toString()
MembershipPrincipal
.public boolean equals(Object o)
MembershipPrincipal
for equality. Returns true if the given object is also a
MembershipPrincipal
and the two
MembershipPrincipals
have the same user name.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.