Class SimplePrincipal

java.lang.Object
org.gatein.sso.saml.plugin.SimplePrincipal
All Implemented Interfaces:
Serializable, Principal
Direct Known Subclasses:
SimpleGroup

public class SimplePrincipal extends Object implements Principal, Serializable
Forked class because this plugin can be used on both JBoss or Tomcat and we want to be independent on AS.
Author:
Oleg Nitz, Scott.Stark@jboss.org
See Also:
  • Constructor Details

    • SimplePrincipal

      public SimplePrincipal(String name)
  • Method Details

    • equals

      public boolean equals(Object another)
      Compare this SimplePrincipal's name against another Principal. If system property org.jboss.security.simpleprincipal.equals.override is set to true will only compare instances of SimplePrincipals.
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
      Returns:
      true if name equals another.getName();
    • hashCode

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

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

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