|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.security.AbstractCredentials
com.hazelcast.security.UsernamePasswordCredentials
public class UsernamePasswordCredentials
Simple implementation of Credentials
using
username and password as security attributes.
Constructor Summary | |
---|---|
UsernamePasswordCredentials()
|
|
UsernamePasswordCredentials(String username,
String password)
|
Method Summary | |
---|---|
int |
getClassId()
Returns class identifier for this portable class. |
int |
getFactoryId()
Returns PortableFactory id for this portable class |
String |
getPassword()
Gets the password. |
String |
getUsername()
Gets the user name. |
protected void |
readPortableInternal(PortableReader reader)
|
void |
setPassword(String password)
Sets the password. |
void |
setUsername(String username)
Sets the user name. |
String |
toString()
|
protected void |
writePortableInternal(PortableWriter writer)
|
Methods inherited from class com.hazelcast.security.AbstractCredentials |
---|
equals, getEndpoint, getPrincipal, hashCode, readPortable, setEndpoint, setPrincipal, writePortable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UsernamePasswordCredentials()
public UsernamePasswordCredentials(String username, String password)
Method Detail |
---|
public String getUsername()
public String getPassword()
public void setUsername(String username)
username
- the user name to setpublic void setPassword(String password)
password
- the password to setprotected void writePortableInternal(PortableWriter writer) throws IOException
writePortableInternal
in class AbstractCredentials
IOException
protected void readPortableInternal(PortableReader reader) throws IOException
readPortableInternal
in class AbstractCredentials
IOException
public int getFactoryId()
Portable
public int getClassId()
Portable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |