public class BasicToken extends java.lang.Object implements Token
Constructor and Description |
---|
BasicToken(java.lang.String name,
java.lang.String password)
Deprecated.
Allocates a new BasicToken with the speccified user name and password.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Deprecated.
Returns the user name associated with this token.
|
java.lang.String |
getPassword()
Deprecated.
Returns the password associated with this token.
|
java.lang.String |
getType()
Deprecated.
Returns this token's type, which is "basic".
|
java.lang.String |
toString()
Deprecated.
Returns a string representation of this token.
|
public BasicToken(java.lang.String name, java.lang.String password)
public java.lang.String getName()
public java.lang.String getPassword()
public java.lang.String getType()
getType
in interface Token
Module.getMechanism()
public java.lang.String toString()
Note: Use this method with caution! The string representation produced by this method will contain the submitted user name and password and therefore creates a possible security exposure.
toString
in class java.lang.Object