public class UsernamePasswordCredentials extends Object implements PasswordCredentials, Portable
PasswordCredentials using
name and password as security attributes.| Constructor and Description |
|---|
UsernamePasswordCredentials() |
UsernamePasswordCredentials(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getClassId()
Returns class identifier for this portable class.
|
int |
getFactoryId()
Returns PortableFactory ID for this portable class
|
String |
getName() |
String |
getPassword()
Gets the password.
|
int |
hashCode() |
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader
|
protected void |
readPortableInternal(PortableReader reader) |
void |
setName(String name) |
void |
setPassword(String password) |
String |
toString() |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter
|
protected void |
writePortableInternal(PortableWriter writer) |
public String getPassword()
getPassword in interface PasswordCredentialspublic void setPassword(String password)
password - the password to setpublic String getName()
getName in interface Credentialspublic void setName(String name)
name - the name to setpublic int getFactoryId()
PortablegetFactoryId in interface Portablepublic int getClassId()
PortablegetClassId in interface Portablepublic final void writePortable(PortableWriter writer) throws IOException
PortablewritePortable in interface Portablewriter - PortableWriterIOExceptionpublic final void readPortable(PortableReader reader) throws IOException
PortablereadPortable in interface Portablereader - PortableReaderIOExceptionprotected void writePortableInternal(PortableWriter writer) throws IOException
IOExceptionprotected void readPortableInternal(PortableReader reader) throws IOException
IOExceptionCopyright © 2019 Hazelcast, Inc.. All rights reserved.