|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.security.SimpleHandler
public class SimpleHandler
The SimpleHandler class is a CallbackHandler implementation based on a specified user name and password.
Constructor Summary | |
---|---|
SimpleHandler(String sName,
char[] acPassword)
Construct a SimpleHandler. |
|
SimpleHandler(String sName,
char[] acPassword,
boolean fDispose)
Construct a SimpleHandler. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this principal to the specified object. |
String |
getName()
Return the name of this principal. |
void |
handle(Callback[] aCallback)
Invoke an array of Callbacks. |
int |
hashCode()
Return a hashcode for this principal. |
String |
toString()
Return a string representation of this principal. |
Constructor Detail |
---|
public SimpleHandler(String sName, char[] acPassword)
sName
- the user nameacPassword
- the passwordpublic SimpleHandler(String sName, char[] acPassword, boolean fDispose)
sName
- the user nameacPassword
- the passwordfDispose
- true if the password should be disposed as
soon as the PasswordCallback has been servedMethod Detail |
---|
public void handle(Callback[] aCallback) throws UnsupportedCallbackException
handle
in interface CallbackHandler
aCallback
- an array of Callback
objects which contains
the information requested by an underlying security
service to be retrieved or displayed.
UnsupportedCallbackException
- if the implementation of this
method does not support one or more of the Callbacks
specified in the callbacks
parameter.public boolean equals(Object o)
equals
in interface Principal
o
- principal to compare with
public String toString()
toString
in interface Principal
public int hashCode()
hashCode
in interface Principal
public String getName()
getName
in interface Principal
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |