org.objectweb.jonas.security.realm.web.catalina55
Class JOnASGenericPrincipal
java.lang.Object
org.apache.catalina.realm.GenericPrincipal
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
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. |
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 |
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 instancename
- the name of the principalpassword
- the password of the principalroles
- the roles of the principal
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