|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.bea.p13n.security.management.authentication.AtnSecurityMgmtHelper
public class AtnSecurityMgmtHelper
Provides helper methods for accessing security management classes, especially those used to manage SSPI providers.
| Field Summary | |
|---|---|
static String |
ATN_PROVIDER_ID |
| Constructor Summary | |
|---|---|
AtnSecurityMgmtHelper() |
|
| Method Summary | |
|---|---|
static AtnProviderDescription |
findProviderByName(String aDisplayName)Returns the configured SSPI authentication provider with a matching display name. |
static AtnProviderDescription |
findProviderByName(String aDisplayName, boolean getCachedMBean)Returns the configured SSPI authentication provider with a matching display name. |
static AtnProviderDescription |
findProviderByUniqueName(String aUniqueId)Returns the configured SSPI authentication provider with a matching unique id which is the concatenation of display name and version number. |
static AtnProviderDescription |
getDefaultProvider()Returns the default configured SSPI authentication provider. |
static String |
getDisallowedUserPattern()Returns the set of characters which are disallowed in the creation of user names. |
static List<AtnProviderDescription> |
getProviders()Returns the list of currently configured SSPI authentication providers. |
static SortablePagedResult<AtnProviderDescription> |
getProviders(int pageSize, P13nContextHandler ctxHdl)Returns the paginated result of authentication providers that the caller at least has "View" capability |
static String |
getProviderUniqueName(String aDisplayName, String aVersion)Returns unique id of the provider which is the concatenation of display name and version number. |
static boolean |
isDeletableGroup(String aProviderDescription, String groupName)Checks whether the groupName specified is a protected group name or whether the groupName is a WLS special group name, neither of which will be allowed to be deleted. |
static boolean |
isMultiAtnProviderMode()Returns an indication of whether multiple authentication providers have been configured. |
static boolean |
isProtectedGroupName(String aProviderDescription, String groupName)Checks whether the groupName specified is an optional reserved group name or whether the groupName is a WLS special group name, neither of which will be allowed to be created by this provider. |
static boolean |
isProtectedUserName(String aProviderDescription, String userName)Checks whether the userName specified is a protected user name which willnot be allowed to be created by this provider. |
static boolean |
isReservedGroupName(String aProviderDescription, String groupName)Checks whether the groupName specified is an optional reserved group name which will not be allowed to be created by this provider. |
static boolean |
isReservedUserName(String aProviderDescription, String userName)Checks whether the userName specified is an optional reserved user name or whether the userName is a WLS special user name, neither of which will be allowed to be created by this provider. |
static void |
validateGroupCallerRole(String operationType, String targetUserName)Throws an exception if the caller is not in the proper role to perform the requested user management operation. |
static void |
validateGroupCallerRole(String operationType, String targetUserName, ContextHandler contextHandler)Throws an exception if the caller is not in the proper role to perform the requested user management operation. |
static void |
validateUserCallerRole(String operationType, String targetUserName)Throws an exception if the caller is not in the proper role to perform the requested user management operation. |
static void |
validateUserCallerRole(String operationType, String targetUserName, ContextHandler contextHandler)Throws an exception if the caller is not in the proper role to perform the requested user management operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ATN_PROVIDER_ID
| Constructor Detail |
|---|
public AtnSecurityMgmtHelper()
| Method Detail |
|---|
public static List<AtnProviderDescription> getProviders()
throws ProviderMgmtException
ProviderMgmtException
public static SortablePagedResult<AtnProviderDescription> getProviders(int pageSize,
P13nContextHandler ctxHdl)
throws ProviderMgmtException
ProviderMgmtException
public static AtnProviderDescription getDefaultProvider()
throws ProviderMgmtException
ProviderMgmtException
public static AtnProviderDescription findProviderByName(String aDisplayName)
throws ProviderMgmtException
aDisplayName - The name entered at the WLS console when creating a new authentication provider.ProviderMgmtException
public static AtnProviderDescription findProviderByName(String aDisplayName,
boolean getCachedMBean)
throws ProviderMgmtException
aDisplayName - The display name this provider is recognized bygetCachedMBean - If true, uses an existing reference to the providerProviderMgmtException
public static AtnProviderDescription findProviderByUniqueName(String aUniqueId)
throws ProviderMgmtException
aUniqueId - Concatenation of display name and version numberProviderMgmtException
public static String getProviderUniqueName(String aDisplayName,
String aVersion)
aDisplayName - The provider nameaVersion - The provider versionpublic static String getDisallowedUserPattern()
public static boolean isReservedUserName(String aProviderDescription,
String userName)
userName specified is an optional reserved user name or whether the userName is a WLS special user name, neither of which will be allowed to be created by this provider.aProviderDescription - the string identifying this authentication provider in the properties file.userName - the user name to evaluate
public static boolean isReservedGroupName(String aProviderDescription,
String groupName)
groupName specified is an optional reserved group name which will not be allowed to be created by this provider.aProviderDescription - the string identifying this authentication provider in the properties file.groupName - the group name to evaluateIllegalArgumentException
public static boolean isProtectedUserName(String aProviderDescription,
String userName)
userName specified is a protected user name which willnot be allowed to be created by this provider.aProviderDescription - the string identifying this authentication provider in the properties file.userName - the user name to evaluate
public static boolean isProtectedGroupName(String aProviderDescription,
String groupName)
groupName specified is an optional reserved group name or whether the groupName is a WLS special group name, neither of which will be allowed to be created by this provider.aProviderDescription - the string identifying this authentication provider in the properties file.groupName - the group name to evaluate
public static boolean isDeletableGroup(String aProviderDescription,
String groupName)
groupName specified is a protected group name or whether the groupName is a WLS special group name, neither of which will be allowed to be deleted.aProviderDescription - the string identifying this authentication provider in the properties file.groupName - the group name to evaluatepublic static boolean isMultiAtnProviderMode()
public static void validateUserCallerRole(String operationType,
String targetUserName)
operationType - the AtnProviderProperties defined operation typetargetUserName - the user the operation is being performed on behalf ofSecurityException
public static void validateUserCallerRole(String operationType,
String targetUserName,
ContextHandler contextHandler)
operationType - the AtnProviderProperties defined operation typetargetUserName - the user the operation is being performed on behalf ofcontextHandler - optional context handler required if expression-based roles protects this User operationSecurityException
public static void validateGroupCallerRole(String operationType,
String targetUserName)
operationType - the AtnProviderProperties defined operation typetargetUserName - the user the operation is being performed on behalf ofSecurityException
public static void validateGroupCallerRole(String operationType,
String targetUserName,
ContextHandler contextHandler)
operationType - the AtnProviderProperties defined operation typetargetUserName - the user the operation is being performed on behalf ofcontextHandler - optional context handler required if expression-based roles protects this Group operationSecurityException
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.