Package com.sun.xml.registry.uddi
Class UDDIPrincipal
- java.lang.Object
-
- com.sun.xml.registry.uddi.UDDIPrincipal
-
- All Implemented Interfaces:
Serializable,Principal
public class UDDIPrincipal extends Object implements Principal, Serializable
This class implements the
Principalinterface and represents a Sample user.Principals such as this
SamplePrincipalmay be associated with a particularSubjectto augment thatSubjectwith an additional identity. Refer to theSubjectclass for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with aSubject.- Version:
- 1.4, 01/11/00
- See Also:
Principal,Subject, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UDDIPrincipal(String name)Create a UDDIPrincipal with a Sample username.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares the specified Object with thisSamplePrincipalfor equality.StringgetName()Return the Sample username for thisSamplePrincipal.inthashCode()Return a hash code for thisSamplePrincipal.StringtoString()Return a string representation of thisSamplePrincipal.
-
-
-
Constructor Detail
-
UDDIPrincipal
public UDDIPrincipal(String name)
Create a UDDIPrincipal with a Sample username.- Parameters:
name- the Sample username for this user.- Throws:
NullPointerException- if thenameisnull.
-
-
Method Detail
-
getName
public String getName()
Return the Sample username for thisSamplePrincipal.
-
toString
public String toString()
Return a string representation of thisSamplePrincipal.
-
equals
public boolean equals(Object o)
Compares the specified Object with thisSamplePrincipalfor equality. Returns true if the given object is also aSamplePrincipaland the two SamplePrincipals have the same username.
-
-