Class HazelcastPrincipal

java.lang.Object
com.hazelcast.security.HazelcastPrincipal
All Implemented Interfaces:
com.hazelcast.nio.serialization.DataSerializable, com.hazelcast.nio.serialization.IdentifiedDataSerializable, Serializable, Principal
Direct Known Subclasses:
ClusterEndpointPrincipal, ClusterIdentityPrincipal, ClusterRolePrincipal

public abstract class HazelcastPrincipal extends Object implements Principal, com.hazelcast.nio.serialization.IdentifiedDataSerializable, Serializable
See Also:
  • Constructor Details

    • HazelcastPrincipal

      public HazelcastPrincipal()
    • HazelcastPrincipal

      public HazelcastPrincipal(String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • getFactoryId

      public int getFactoryId()
      Returns SecurityDataSerializerHook.F_ID. May be overriden by subclasses.
      Specified by:
      getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
    • writeData

      public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws IOException
      Specified by:
      writeData in interface com.hazelcast.nio.serialization.DataSerializable
      Throws:
      IOException
    • readData

      public void readData(com.hazelcast.nio.ObjectDataInput in) throws IOException
      Specified by:
      readData in interface com.hazelcast.nio.serialization.DataSerializable
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Object