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 StringGROUP_CLASSstatic StringIDENTITY_CLASSstatic StringPRINCIPAL_CLASS
-
Constructor Summary
Constructors Constructor Description IdentityFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GroupcreateGroup(String name)static IdentitycreateIdentity(String name)static IdentitycreateIdentity(String identityClass, String name)static IdentitycreateIdentityWithRole(String name, String roleName)static IdentitycreateIdentityWithRole(String identityClass, String name, String roleName)static IdentitycreateIdentityWithRole(String identityClass, String name, Role role)static IdentitycreateIdentityWithRole(String name, Role role)static PrincipalcreatePrincipal(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
-
-