Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.3)

Part Number E13941-03

weblogic.security.principal
Class PrincipalFactory

java.lang.Object
  extended by weblogic.security.principal.PrincipalFactory

public class PrincipalFactory
extends Object

This class could be used to create WLSPrincipal instances with appropriate values, i.e. principal name, dn and guid.


Method Summary
 WLSPrincipal create(Class klass, String name, String guid, String dn)
          Create a WLSPrincipal instance based on the input principal class
 WLSPrincipal createWLSGroup(String groupName)
          Create a WLSGroup instance
 WLSPrincipal createWLSGroup(String groupName, String guid, String dn)
          Create a WLSGroup instance
 WLSPrincipal createWLSUser(String userName)
          Create a WLSUser instance
 WLSPrincipal createWLSUser(String userName, String guid, String dn)
          Create a WLSUser instance
static PrincipalFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PrincipalFactory getInstance()

createWLSUser

public WLSPrincipal createWLSUser(String userName)
Create a WLSUser instance

Parameters:
userName - the user name for the WLSUser
Returns:
a WLSUserImpl instance

createWLSUser

public WLSPrincipal createWLSUser(String userName,
                                  String guid,
                                  String dn)
Create a WLSUser instance

Parameters:
userName - the user name for the WLSUser
guid - the global unique id for the WLSUser
dn - the distinguished name for the WLSUser
Returns:
a WLSUserImpl instance

createWLSGroup

public WLSPrincipal createWLSGroup(String groupName)
Create a WLSGroup instance

Parameters:
groupName - the group name for the WLSGroup
Returns:
a WLSGroupImpl instance

createWLSGroup

public WLSPrincipal createWLSGroup(String groupName,
                                   String guid,
                                   String dn)
Create a WLSGroup instance

Parameters:
groupName - the group name for the WLSGroup instance
guid - the global unique id for the WLSGroup instance
dn - the distinguished name for the WLSGroup instance
Returns:
a WLSGroupImpl instance

create

public WLSPrincipal create(Class klass,
                           String name,
                           String guid,
                           String dn)
                    throws InvalidParameterException
Create a WLSPrincipal instance based on the input principal class

Parameters:
klass - the java class to be used to create the WLSPrincipal
name - the name for the WLSPrincipal instance
guid - the global unique id for the WLSPrincipal instance
dn - the distinguished name for the WLSPrincipal instance
Returns:
a WLSPrincipal instance
Throws:
InvalidParameterException

Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.3 API Reference
11g Release 1 (10.3.3)

Part Number E13941-03