public class UsernamePasswordCredentials extends AbstractCredentials
Credentials using
 username and password as security attributes.| Constructor and Description | 
|---|
| UsernamePasswordCredentials() | 
| UsernamePasswordCredentials(String username,
                           String password) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
equals, getEndpoint, getPrincipal, hashCode, readPortable, setEndpoint, setPrincipal, writePortablepublic 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 AbstractCredentialsIOExceptionprotected void readPortableInternal(PortableReader reader) throws IOException
readPortableInternal in class AbstractCredentialsIOExceptionpublic int getFactoryId()
Portablepublic int getClassId()
PortableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.