org.jboss.security.identity.plugins
Class IdentityFactory

java.lang.Object
  extended by org.jboss.security.identity.plugins.IdentityFactory

public class IdentityFactory
extends Object

Factory to create customized principal and group instances

Since:
Nov 18, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
static String GROUP_CLASS
           
static String IDENTITY_CLASS
           
static String PRINCIPAL_CLASS
           
 
Constructor Summary
IdentityFactory()
           
 
Method Summary
static Group createGroup(String name)
           
static org.jboss.security.identity.Identity createIdentity(String name)
           
static org.jboss.security.identity.Identity createIdentity(String identityClass, String name)
           
static org.jboss.security.identity.Identity createIdentityWithRole(String name, org.jboss.security.identity.Role role)
           
static org.jboss.security.identity.Identity createIdentityWithRole(String name, String roleName)
           
static org.jboss.security.identity.Identity createIdentityWithRole(String identityClass, String name, org.jboss.security.identity.Role role)
           
static org.jboss.security.identity.Identity createIdentityWithRole(String identityClass, String name, String roleName)
           
static Principal createPrincipal(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY_CLASS

public static final String IDENTITY_CLASS
See Also:
Constant Field Values

PRINCIPAL_CLASS

public static final String PRINCIPAL_CLASS
See Also:
Constant Field Values

GROUP_CLASS

public static final String GROUP_CLASS
See Also:
Constant Field Values
Constructor Detail

IdentityFactory

public IdentityFactory()
Method Detail

createPrincipal

public static Principal createPrincipal(String name)
                                 throws Exception
Throws:
Exception

createGroup

public static Group createGroup(String name)
                         throws Exception
Throws:
Exception

createIdentity

public static org.jboss.security.identity.Identity createIdentity(String name)
                                                           throws Exception
Throws:
Exception

createIdentity

public static org.jboss.security.identity.Identity createIdentity(String identityClass,
                                                                  String name)
                                                           throws Exception
Throws:
Exception

createIdentityWithRole

public static org.jboss.security.identity.Identity createIdentityWithRole(String name,
                                                                          String roleName)
                                                                   throws Exception
Throws:
Exception

createIdentityWithRole

public static org.jboss.security.identity.Identity createIdentityWithRole(String identityClass,
                                                                          String name,
                                                                          String roleName)
                                                                   throws Exception
Throws:
Exception

createIdentityWithRole

public static org.jboss.security.identity.Identity createIdentityWithRole(String name,
                                                                          org.jboss.security.identity.Role role)
                                                                   throws Exception
Throws:
Exception

createIdentityWithRole

public static org.jboss.security.identity.Identity createIdentityWithRole(String identityClass,
                                                                          String name,
                                                                          org.jboss.security.identity.Role role)
                                                                   throws Exception
Throws:
Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.