Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


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 create(Class klass, String name, String identityDomain, String guid, String dn)
           
 WLSPrincipal createWLSGroup(String groupName)
          Create a WLSGroup instance
 WLSPrincipal createWLSGroup(String groupName, String identityDomain)
          Create a WLSGroup instance
 WLSPrincipal createWLSGroup(String groupName, String guid, String dn)
          Create a WLSGroup instance
 WLSPrincipal createWLSGroup(String groupName, String identityDomain, String guid, String dn)
          Create a WLSGroup instance
 WLSPrincipal createWLSUser(String userName)
          Create a WLSUser instance
 WLSPrincipal createWLSUser(String userName, String identityDomain)
          Create a WLSUser instance
 WLSPrincipal createWLSUser(String userName, String guid, String dn)
          Create a WLSUser instance
 WLSPrincipal createWLSUser(String userName, String identityDomain, 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 identityDomain)
Create a WLSUser instance
Parameters:
userName - the user name for the WLSUser
identityDomain - the identityDomain name of the principal
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

createWLSUser

public WLSPrincipal createWLSUser(String userName,
                                  String identityDomain,
                                  String guid,
                                  String dn)
Create a WLSUser instance
Parameters:
userName - the user name for the WLSUser
identityDomain - the identityDomain name of the principal
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 identityDomain)
Create a WLSGroup instance
Parameters:
groupName - the group name for the WLSGroup
identityDomain - the identityDomain name of the principal
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

createWLSGroup

public WLSPrincipal createWLSGroup(String groupName,
                                   String identityDomain,
                                   String guid,
                                   String dn)
Create a WLSGroup instance
Parameters:
groupName - the group name for the WLSGroup instance
identityDomain - the identityDomain name of the principal
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

create

public WLSPrincipal create(Class klass,
                           String name,
                           String identityDomain,
                           String guid,
                           String dn)
                    throws InvalidParameterException
Parameters:
klass - the java class to be used to create the WLSPrincipal
name - the name for the WLSPrincipal instance
identityDomain - the identityDomain name of the principal
guid - the global unique id for the WLSPrincipal instance
dn - the distinguished name for the WLSPrincipal instance
Returns:
a WLSPrincipal instance
Throws:
InvalidParameterException

Skip navigation links

Copyright 1996, 2015, 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
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09