Top Fields Constructors Methods
org.keycloak

public Class KeycloakPrincipal<T extends org.keycloak.KeycloakSecurityContext>

extends Object
implements Principal, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.security.Principal
Imports
org.keycloak.common.util.DelegatingSerializationFilter, java.io.IOException, .ObjectInputStream, .Serializable, java.security.Principal

Author
Bill Burke
Version
$Revision: 1 $

Field Summary

Modifier and TypeField and Description
protected final T
protected final String

Constructor Summary

AccessConstructor and Description
public
KeycloakPrincipal(String name, T context)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
Principal to compare with.
o
)

Overrides java.lang.Object.equals.

Implements java.security.Principal.equals.

Compares this Principal to the specified object.
public T
public String
getName()

Implements java.security.Principal.getName.

Returns the name of this Principal.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements java.security.Principal.hashCode.

Returns a hashcode for this Principal.
private void
public String
toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Returns a string representation of this Principal.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

contextback to summary
protected final T context
nameback to summary
protected final String name

Constructor Detail

KeycloakPrincipalback to summary
public KeycloakPrincipal(String name, T context)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Implements java.security.Principal.equals.

Doc from java.security.Principal.equals.

Compares this Principal to the specified object. Returns true if the object passed in matches the Principal represented by the implementation of this interface.

Parameters
o:Object

Principal to compare with.

Returns:boolean

true if the Principal passed in is the same as that encapsulated by this Principal, and false otherwise.

Annotations
@Override
getKeycloakSecurityContextback to summary
public T getKeycloakSecurityContext()
getNameback to summary
public String getName()

Implements java.security.Principal.getName.

Doc from java.security.Principal.getName.

Returns the name of this Principal.

Returns:String

the name of this Principal.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements java.security.Principal.hashCode.

Doc from java.security.Principal.hashCode.

Returns a hashcode for this Principal.

Returns:int

a hashcode for this Principal.

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Doc from java.security.Principal.toString.

Returns a string representation of this Principal.

Returns:String

a string representation of this Principal.

Annotations
@Override