|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tivoli.pd.rgy.authz.AuthzRgyRegistryFactory
public class AuthzRgyRegistryFactory
Provides Authorization and Audit facilities for other RgyRegistry instances. The Authorization uses the Java PDAdmin API's PDAuthorizationContext. Both Authorization and Audit can be independently used.
| Field Summary | |
|---|---|
static java.lang.String |
AUTHZ_ENABLE_AUTHORIZATION
|
static java.lang.String |
AUTHZ_INITIALIZE_PDADMIN
|
static java.lang.String |
AUTHZ_PDAUTHORIZATIONCONTEXT_PWD
|
static java.lang.String |
AUTHZ_PDAUTHORIZATIONCONTEXT_USER
|
| Method Summary | |
|---|---|
static PDAuthorizationContext |
getPdAuthzContext(RgyRegistry rgyRegistry)
Obtains the PDAuthorizationContext being used the the supplied RgyRegistry but only if the RgyRegistry is an instance of AuthzRgyRegistry, and only if a PDAuthorizationContext is being used. |
static RgyRegistry |
getRgyRegistryInstance(java.util.Properties properties,
java.util.Map<java.lang.String,java.lang.Object> enhancements,
RgyRegistry wrappedRgyRegistry,
PDAuthorizationContext pdAuthzContext,
java.lang.String adminUserId)
Creates a unique instance of AuthzRgyRegistry each invocation configured using the supplied properties and enhancements, and it uses the provided PDAuthorizatonContext to authorize the provided adminUserId when using this API. |
static RgyRegistry |
getRgyRegistryInstance(java.net.URL propertiesUrl,
java.util.Map<java.lang.String,java.lang.Object> enhancements,
RgyRegistry wrappedRgyRegistry)
Creates a unique instance of AuthzRgyRegistry each invocation configured using the supplied properties and enhancements. |
static RgyRegistry |
getRgyRegistryInstance(java.net.URL propertiesUrl,
java.util.Map<java.lang.String,java.lang.Object> enhancements,
RgyRegistry wrappedRgyRegistry,
PDAuthorizationContext pdAuthzContext,
java.lang.String adminUserId)
Creates a unique instance of AuthzRgyRegistry each invocation configured using the supplied properties and enhancements, and it uses the provided PDAuthorizatonContext to authorize the provided adminUserId when using this API. |
static void |
updateAdminId(RgyRegistry rgyRegistry,
java.lang.String adminUserId)
Updates the admin user ID use for authorization checks. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AUTHZ_ENABLE_AUTHORIZATION
public static final java.lang.String AUTHZ_PDAUTHORIZATIONCONTEXT_USER
public static final java.lang.String AUTHZ_PDAUTHORIZATIONCONTEXT_PWD
public static final java.lang.String AUTHZ_INITIALIZE_PDADMIN
| Method Detail |
|---|
public static RgyRegistry getRgyRegistryInstance(java.net.URL propertiesUrl,
java.util.Map<java.lang.String,java.lang.Object> enhancements,
RgyRegistry wrappedRgyRegistry)
throws RgyException
propertiesUrl - File containing properties to configure this
AuthzRgyRegistry instance, and possibly a PDAuthorizationContext.enhancements - May be null, currently unused.wrappedRgyRegistry - The RgyRegistry instance to Authorize access
to, and/or Audit.
RgyException - If an error occurs during setup.
public static RgyRegistry getRgyRegistryInstance(java.util.Properties properties,
java.util.Map<java.lang.String,java.lang.Object> enhancements,
RgyRegistry wrappedRgyRegistry,
PDAuthorizationContext pdAuthzContext,
java.lang.String adminUserId)
throws RgyException
The authz.enable-authorization setting is ignored, and the authorization enablement will depend on the value for pdAuthzContext.
properties - Properties to configure this AuthzRgyRegistry instance.enhancements - May be null, currently unused.wrappedRgyRegistry - The RgyRegistry instance to Authorize access
to, and/or Audit.pdAuthzContext - If non-null this will be used to authorize access
to the wrappedRgyRegistry. If null, no authorization will occur.adminUserId - If pdAuthzContext is specified this user will be used
for authorization checks. authz.pdauthorizatoncontext-user will be
ignored.
RgyException - If an error occurs during setup.
public static RgyRegistry getRgyRegistryInstance(java.net.URL propertiesUrl,
java.util.Map<java.lang.String,java.lang.Object> enhancements,
RgyRegistry wrappedRgyRegistry,
PDAuthorizationContext pdAuthzContext,
java.lang.String adminUserId)
throws RgyException
The authz.enable-authorization setting is ignored, and the authorization enablement will depend on the value for pdAuthzContext.
propertiesUrl - Properties to configure this AuthzRgyRegistry instance.enhancements - May be null, currently unused.wrappedRgyRegistry - The RgyRegistry instance to Authorize access
to, and/or Audit.pdAuthzContext - If non-null this will be used to authorize access
to the wrappedRgyRegistry. If null, no authorization will occur.adminUserId - If pdAuthzContext is specified this user will be used
for authorization checks. authz.pdauthorizatoncontext-user will be
ignored.
RgyException - If an error occurs during setup.
public static void updateAdminId(RgyRegistry rgyRegistry,
java.lang.String adminUserId)
throws ConfigurationErrorRgyException
rgyRegistry - An AuthzRgyRegisry instance to update.adminUserId - The admin user SAM ID to fetch credentials for and use.
ConfigurationErrorRgyException - adminUserID is not valid.public static PDAuthorizationContext getPdAuthzContext(RgyRegistry rgyRegistry)
rgyRegistry - The AuthzRgyRegistry to fetch the PDAuthorizationContext
from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||