info.magnolia.cms.security
Class PrincipalUtil

java.lang.Object
  extended by info.magnolia.cms.security.PrincipalUtil

public class PrincipalUtil
extends Object

Utility methods for handling JAAS principals.


Constructor Summary
PrincipalUtil()
           
 
Method Summary
static Subject createSubject(User user)
           
static ACL findAccessControlList(Iterable<Principal> principals, String name)
           
static ACL findAccessControlList(Subject subject, String name)
           
static
<T extends Principal>
T
findPrincipal(Subject subject, Class<T> clazz)
           
static
<T extends Principal>
T
removePrincipal(Iterable<Principal> principals, Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalUtil

public PrincipalUtil()
Method Detail

createSubject

public static Subject createSubject(User user)

findPrincipal

public static <T extends Principal> T findPrincipal(Subject subject,
                                                    Class<T> clazz)

findAccessControlList

public static ACL findAccessControlList(Iterable<Principal> principals,
                                        String name)

findAccessControlList

public static ACL findAccessControlList(Subject subject,
                                        String name)

removePrincipal

public static <T extends Principal> T removePrincipal(Iterable<Principal> principals,
                                                      Class<T> clazz)


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.