Package com.hazelcast.security
Class UsernamePasswordCredentials
java.lang.Object
com.hazelcast.security.UsernamePasswordCredentials
- All Implemented Interfaces:
- DataSerializable,- IdentifiedDataSerializable,- Credentials,- PasswordCredentials,- Serializable
public class UsernamePasswordCredentials
extends Object
implements PasswordCredentials, IdentifiedDataSerializable
Simple implementation of 
PasswordCredentials using
 name and password as security attributes.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.getName()Gets the password.inthashCode()voidReads fields from the input streamvoidvoidsetPassword(String password) toString()voidWrites object fields to output stream
- 
Constructor Details- 
UsernamePasswordCredentialspublic UsernamePasswordCredentials()
- 
UsernamePasswordCredentials
 
- 
- 
Method Details- 
getPasswordGets the password.- Specified by:
- getPasswordin interface- PasswordCredentials
 
- 
setPassword- Parameters:
- password- the password to set
 
- 
getName- Specified by:
- getNamein interface- Credentials
 
- 
setName- Parameters:
- name- the name to set
 
- 
getFactoryIdpublic int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
- getFactoryIdin interface- IdentifiedDataSerializable
- Returns:
- factory ID
 
- 
getClassIdpublic int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
- getClassIdin interface- IdentifiedDataSerializable
- Returns:
- type ID
 
- 
toString
- 
writeDataDescription copied from interface:DataSerializableWrites object fields to output stream- Specified by:
- writeDatain interface- DataSerializable
- Parameters:
- out- output
- Throws:
- IOException- if an I/O error occurs. In particular, an- IOExceptionmay be thrown if the output stream has been closed.
 
- 
readDataDescription copied from interface:DataSerializableReads fields from the input stream- Specified by:
- readDatain interface- DataSerializable
- Parameters:
- in- input
- Throws:
- IOException- if an I/O error occurs. In particular, an- IOExceptionmay be thrown if the input stream has been closed.
 
- 
hashCodepublic int hashCode()
- 
equals
 
-