|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.WSUsernameTokenPrincipal
public class WSUsernameTokenPrincipal
This class implements the Principal interface and
represents a UsernameToken user.
PasswordDigest.
Furthermore the password type is
provided to the application. The password type is the string of the type
attribute of the password element inside the username token. Refer to the
OASIS WSS specification for predefined password types. The
equals() method use the prinicipal's name only and does not
compare nonce or created time.
Modelled according to the example provided
by JAAS documentation
Principal,
Subject,
Serialized Form| Constructor Summary | |
|---|---|
WSUsernameTokenPrincipal(java.lang.String name,
boolean digest)
Create a WSUsernameTokenPrincipal with a WSUsernameToken username. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the specified Object with this WSUsernameTokenPrincipal
for equality. |
java.lang.String |
getCreatedTime()
Return the WSUsernameToken created time for this WSUsernameTokenPrincipal. |
java.lang.String |
getName()
Return the WSUsernameToken username for this WSUsernameTokenPrincipal. |
java.lang.String |
getNonce()
Return the WSUsernameToken nonce for this WSUsernameTokenPrincipal. |
java.lang.String |
getPassword()
Return the WSUsernameToken password for this WSUsernameTokenPrincipal. |
java.lang.String |
getPasswordType()
|
int |
hashCode()
Return a hash code for this WSUsernameTokenPrincipal. |
boolean |
isPasswordDigest()
Return the WSUsernameToken password type for this WSUsernameTokenPrincipal. |
void |
setCreatedTime(java.lang.String createdTime)
Set the WSUsernameToken created time for this WSUsernameTokenPrincipal. |
void |
setNonce(java.lang.String nonce)
Set the WSUsernameToken nonce for this WSUsernameTokenPrincipal. |
void |
setPassword(java.lang.String password)
Set the WSUsernameToken password for this WSUsernameTokenPrincipal. |
void |
setPasswordType(java.lang.String passwordType)
|
java.lang.String |
toString()
Return a string representation of this WSUsernameTokenPrincipal. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WSUsernameTokenPrincipal(java.lang.String name,
boolean digest)
name - the WSUsernameToken username for this user.| Method Detail |
|---|
public java.lang.String getName()
WSUsernameTokenPrincipal.
getName in interface java.security.PrincipalWSUsernameTokenPrincipalpublic boolean isPasswordDigest()
WSUsernameTokenPrincipal.
PassowrdDigestpublic void setPassword(java.lang.String password)
WSUsernameTokenPrincipal.
password - public java.lang.String getPassword()
WSUsernameTokenPrincipal.
WSUsernameTokenPrincipalpublic void setNonce(java.lang.String nonce)
WSUsernameTokenPrincipal.
nonce - public java.lang.String getNonce()
WSUsernameTokenPrincipal.
WSUsernameTokenPrincipalpublic void setCreatedTime(java.lang.String createdTime)
WSUsernameTokenPrincipal.
createdTime - public java.lang.String getCreatedTime()
WSUsernameTokenPrincipal.
WSUsernameTokenPrincipalpublic java.lang.String toString()
WSUsernameTokenPrincipal.
toString in interface java.security.PrincipaltoString in class java.lang.ObjectWSUsernameTokenPrincipal.public java.lang.String getPasswordType()
public void setPasswordType(java.lang.String passwordType)
passwordType - The passwordType to set.public boolean equals(java.lang.Object o)
WSUsernameTokenPrincipal
for equality. Returns true if the given object is also a
WSUsernameTokenPrincipal and the two WSUsernameTokenPrincipals
have the same username.
equals in interface java.security.Principalequals in class java.lang.Objecto - Object to be compared for equality with this
WSUsernameTokenPrincipal.
WSUsernameTokenPrincipal.public int hashCode()
WSUsernameTokenPrincipal.
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectWSUsernameTokenPrincipal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||