com.hazelcast.security
Class AbstractCredentials
java.lang.Object
com.hazelcast.security.AbstractCredentials
- All Implemented Interfaces:
- Portable, Credentials, Serializable
- Direct Known Subclasses:
- UsernamePasswordCredentials
public abstract class AbstractCredentials
- extends Object
- implements Credentials, Portable
Abstract implementation of Credentials
- See Also:
- Serialized Form
AbstractCredentials
public AbstractCredentials()
AbstractCredentials
public AbstractCredentials(String principal)
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
writePortable
public final void writePortable(PortableWriter writer)
throws IOException
- Specified by:
writePortable
in interface Portable
- Throws:
IOException
readPortable
public final void readPortable(PortableReader reader)
throws IOException
- Specified by:
readPortable
in interface Portable
- Throws:
IOException
writePortableInternal
protected abstract void writePortableInternal(PortableWriter writer)
throws IOException
- Throws:
IOException
readPortableInternal
protected abstract void readPortableInternal(PortableReader reader)
throws IOException
- Throws:
IOException
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.