Class IdentityFactory
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static String
GROUP_CLASS
static String
IDENTITY_CLASS
static String
PRINCIPAL_CLASS
-
Constructor Summary
Constructors Constructor Description IdentityFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Group
createGroup(String name)
static Identity
createIdentity(String name)
static Identity
createIdentity(String identityClass, String name)
static Identity
createIdentityWithRole(String name, String roleName)
static Identity
createIdentityWithRole(String identityClass, String name, String roleName)
static Identity
createIdentityWithRole(String identityClass, String name, Role role)
static Identity
createIdentityWithRole(String name, Role role)
static Principal
createPrincipal(String name)
-
-
-
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
-
-
Method Detail
-
createPrincipal
public static Principal createPrincipal(String name) throws Exception
- Throws:
Exception
-
createIdentity
public static Identity createIdentity(String name) throws Exception
- Throws:
Exception
-
createIdentity
public static Identity createIdentity(String identityClass, String name) throws Exception
- Throws:
Exception
-
createIdentityWithRole
public static Identity createIdentityWithRole(String name, String roleName) throws Exception
- Throws:
Exception
-
createIdentityWithRole
public static Identity createIdentityWithRole(String identityClass, String name, String roleName) throws Exception
- Throws:
Exception
-
createIdentityWithRole
public static Identity createIdentityWithRole(String name, Role role) throws Exception
- Throws:
Exception
-
-