org.openmdx.kernel.security.authentication.spi
Class GenericPrincipals

java.lang.Object
  extended by org.openmdx.kernel.security.authentication.spi.GenericPrincipals

public class GenericPrincipals
extends Object

The main principal types used in openMDX/Security tokens


Field Summary
static String GROUP
          Denotes a group an authenticated user belongs to
protected static String PREFIX
          The principal constants' prefix
static String TOKEN
          The token containing an array of generic principals
static String USER
          Denotes an authenticated user
 
Method Summary
static boolean isGenericGroup(Principal principal)
          Test whether a given principal is a generic USER principal.
static boolean isGenericUser(Principal principal)
          Test whether a given principal is a generic USER principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

protected static final String PREFIX
The principal constants' prefix

See Also:
Constant Field Values

USER

public static final String USER
Denotes an authenticated user

See Also:
Constant Field Values

GROUP

public static final String GROUP
Denotes a group an authenticated user belongs to

See Also:
Constant Field Values

TOKEN

public static final String TOKEN
The token containing an array of generic principals

See Also:
Constant Field Values
Method Detail

isGenericUser

public static boolean isGenericUser(Principal principal)
Test whether a given principal is a generic USER principal.

Returns:
true if the given principal is a generic USER principal.

isGenericGroup

public static boolean isGenericGroup(Principal principal)
Test whether a given principal is a generic USER principal.

Returns:
true if the given principal is a generic USER principal.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.