org.objectweb.jonas.security.realm.web.catalina55
Class JOnASGenericPrincipal

java.lang.Object
  extended by org.apache.catalina.realm.GenericPrincipal
      extended by org.objectweb.jonas.security.realm.web.catalina55.JOnASGenericPrincipal
All Implemented Interfaces:
java.security.Principal

public class JOnASGenericPrincipal
extends org.apache.catalina.realm.GenericPrincipal

Defines a JOnAs/Tomcat Principal that can include a digital signature for the security.

Author:
Florent BENOIT

Field Summary
 
Fields inherited from class org.apache.catalina.realm.GenericPrincipal
name, password, realm, roles, userPrincipal
 
Constructor Summary
JOnASGenericPrincipal(org.apache.catalina.Realm realm, java.lang.String name, java.lang.String password, java.util.List roles)
          Defines a new Principal with the given realm and attributes.
 
Method Summary
 byte[] getSignature()
           
 void setSignature(byte[] signature)
          Sets the given signature on this principal.
 
Methods inherited from class org.apache.catalina.realm.GenericPrincipal
getName, getPassword, getRealm, getRoles, getUserPrincipal, hasRole, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Constructor Detail

JOnASGenericPrincipal

public JOnASGenericPrincipal(org.apache.catalina.Realm realm,
                             java.lang.String name,
                             java.lang.String password,
                             java.util.List roles)
Defines a new Principal with the given realm and attributes.

Parameters:
realm - the given realm instance
name - the name of the principal
password - the password of the principal
roles - the roles of the principal
Method Detail

getSignature

public byte[] getSignature()
Returns:
the signature of this principal.

setSignature

public void setSignature(byte[] signature)
Sets the given signature on this principal.

Parameters:
signature - the given signature