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 PasswordCredentials
public void setPassword(String password)
password
- the password to setpublic String getName()
getName
in interface Credentials
public void setName(String name)
name
- the name to setpublic int getFactoryId()
Portable
getFactoryId
in interface Portable
public int getClassId()
Portable
getClassId
in interface Portable
public final void writePortable(PortableWriter writer) throws IOException
Portable
writePortable
in interface Portable
writer
- PortableWriterIOException
public final void readPortable(PortableReader reader) throws IOException
Portable
readPortable
in interface Portable
reader
- PortableReaderIOException
protected void writePortableInternal(PortableWriter writer) throws IOException
IOException
protected void readPortableInternal(PortableReader reader) throws IOException
IOException
Copyright © 2019 Hazelcast, Inc.. All rights reserved.