public class UDDIPrincipal extends Object implements Principal, Serializable
This class implements the Principal interface
and represents a Sample user.
Principals such as this SamplePrincipal
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.
Principal,
Subject,
Serialized Form| Constructor and Description |
|---|
UDDIPrincipal(String name)
Create a UDDIPrincipal with a Sample username.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the specified Object with this
SamplePrincipal
for equality. |
String |
getName()
Return the Sample username for this
SamplePrincipal. |
int |
hashCode()
Return a hash code for this
SamplePrincipal. |
String |
toString()
Return a string representation of this
SamplePrincipal. |
public UDDIPrincipal(String name)
name - the Sample username for this user.NullPointerException - if the name
is null.public String getName()
SamplePrincipal.
public String toString()
SamplePrincipal.
public boolean equals(Object o)
SamplePrincipal
for equality. Returns true if the given object is also a
SamplePrincipal and the two SamplePrincipals
have the same username.
Copyright © 2005–2017 Oracle Corporation. All rights reserved.