com.hazelcast.security
Class AbstractCredentials

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

public abstract class AbstractCredentials
extends Object
implements Credentials, DataSerializable

Abstract implementation of Credentials

See Also:
Serialized Form

Constructor Summary
AbstractCredentials()
           
AbstractCredentials(String principal)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getEndpoint()
          Returns IP address of endpoint.
 String getPrincipal()
          Returns principal of endpoint.
 int hashCode()
           
 void readData(DataInput in)
           
protected abstract  void readDataInternal(DataInput in)
           
 void setEndpoint(String endpoint)
          Sets IP address of endpoint.
 void setPrincipal(String principal)
           
 void writeData(DataOutput out)
           
protected abstract  void writeDataInternal(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCredentials

public AbstractCredentials()

AbstractCredentials

public AbstractCredentials(String principal)
Method Detail

getEndpoint

public final String getEndpoint()
Description copied from interface: Credentials
Returns IP address of endpoint.

Specified by:
getEndpoint in interface Credentials
Returns:
endpoint address

setEndpoint

public final void setEndpoint(String endpoint)
Description copied from interface: Credentials
Sets IP address of endpoint.

Specified by:
setEndpoint in interface Credentials
Parameters:
endpoint - address

getPrincipal

public String getPrincipal()
Description copied from interface: Credentials
Returns principal of endpoint.

Specified by:
getPrincipal in interface Credentials
Returns:
endpoint principal

setPrincipal

public void setPrincipal(String principal)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

writeData

public final void writeData(DataOutput out)
                     throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public final void readData(DataInput in)
                    throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException

writeDataInternal

protected abstract void writeDataInternal(DataOutput out)
                                   throws IOException
Throws:
IOException

readDataInternal

protected abstract void readDataInternal(DataInput in)
                                  throws IOException
Throws:
IOException


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