com.hazelcast.security
Class UsernamePasswordCredentials

java.lang.Object
  extended by com.hazelcast.security.AbstractCredentials
      extended by com.hazelcast.security.UsernamePasswordCredentials
All Implemented Interfaces:
DataSerializable, Credentials, Serializable

public class UsernamePasswordCredentials
extends AbstractCredentials

Simple implementation of Credentials using username and password as security attributes.

See Also:
Serialized Form

Constructor Summary
UsernamePasswordCredentials()
           
UsernamePasswordCredentials(String username, String password)
           
 
Method Summary
 String getPassword()
           
 byte[] getRawPassword()
           
 String getUsername()
           
 void readDataInternal(DataInput in)
           
 void setPassword(String password)
           
 void setUsername(String username)
           
 String toString()
           
 void writeDataInternal(DataOutput out)
           
 
Methods inherited from class com.hazelcast.security.AbstractCredentials
equals, getEndpoint, getPrincipal, hashCode, readData, setEndpoint, setPrincipal, writeData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsernamePasswordCredentials

public UsernamePasswordCredentials()

UsernamePasswordCredentials

public UsernamePasswordCredentials(String username,
                                   String password)
Method Detail

getUsername

public String getUsername()

getRawPassword

public byte[] getRawPassword()

getPassword

public String getPassword()

setUsername

public void setUsername(String username)

setPassword

public void setPassword(String password)

writeDataInternal

public void writeDataInternal(DataOutput out)
                       throws IOException
Specified by:
writeDataInternal in class AbstractCredentials
Throws:
IOException

readDataInternal

public void readDataInternal(DataInput in)
                      throws IOException
Specified by:
readDataInternal in class AbstractCredentials
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.