com.hazelcast.security
Class UsernamePasswordCredentials
java.lang.Object
com.hazelcast.security.AbstractCredentials
com.hazelcast.security.UsernamePasswordCredentials
- All Implemented Interfaces:
- Portable, Credentials, Serializable
public class UsernamePasswordCredentials
- extends AbstractCredentials
Simple implementation of Credentials
using
username and password as security attributes.
- See Also:
- Serialized Form
UsernamePasswordCredentials
public UsernamePasswordCredentials()
UsernamePasswordCredentials
public UsernamePasswordCredentials(String username,
String password)
getUsername
public String getUsername()
getPassword
public String getPassword()
setUsername
public void setUsername(String username)
setPassword
public void setPassword(String password)
writePortableInternal
protected void writePortableInternal(PortableWriter writer)
throws IOException
- Specified by:
writePortableInternal
in class AbstractCredentials
- Throws:
IOException
readPortableInternal
protected void readPortableInternal(PortableReader reader)
throws IOException
- Specified by:
readPortableInternal
in class AbstractCredentials
- Throws:
IOException
getFactoryId
public int getFactoryId()
- Description copied from interface:
Portable
- Returns PortableFactory id for this portable class
- Returns:
- factory id
getClassId
public int getClassId()
- Description copied from interface:
Portable
- Returns class identifier for this portable class. Class id should be unique per PortableFactory.
- Returns:
- class id
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.