public class UserPrincipal extends Object implements Principal, Serializable
Constructor and Description |
---|
UserPrincipal(String name)
Creates
UserPrincipal object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares the specified Object with this
LDAPPrincipal
for equality. |
String |
getName()
Return the user name for this
UserPrincipal . |
int |
hashCode()
Returns a hash code for this
UserPrincipal . |
String |
toString()
Returns a string representation of this
UserPrincipal . |
public UserPrincipal(String name)
UserPrincipal
object.name
- representing pricipal for user.public String getName()
UserPrincipal
.public String toString()
UserPrincipal
.public boolean equals(Object o)
LDAPPrincipal
for equality. Returns true
if the given object is also a
LDAPPrincipal
and the two LDAPPrincipal
s
have the same user name.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.