public class XmlAuthzCredentialGenerator extends AuthzCredentialGenerator
AuthzCredentialGenerator.ClassCode| Modifier and Type | Field and Description |
|---|---|
static com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] |
QUERY_OPS |
static com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] |
READER_OPS |
static com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] |
WRITER_OPS |
cGen| Constructor and Description |
|---|
XmlAuthzCredentialGenerator() |
| Modifier and Type | Method and Description |
|---|---|
AuthzCredentialGenerator.ClassCode |
classCode()
The
AuthzCredentialGenerator.ClassCode of the particular implementation. |
protected Principal |
getAllowedPrincipal(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] opCodes,
String[] regionNames,
int index)
Get a
Principal generated using the given index allowed to perform
the given OperationContext.OperationCodes for the given region. |
String |
getAuthorizationCallback()
The name of the
AccessControl factory function that should be used
as the authorization module on the server side. |
protected Principal |
getDisallowedPrincipal(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] opCodes,
String[] regionNames,
int index)
Get a
Principal generated using the given index not allowed to
perform the given OperationContext.OperationCodes for the given region. |
protected int |
getNumPrincipalTries(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] opCodes,
String[] regionNames)
Get the number of tries to be done for obtaining valid credentials for the
given operations in the given region.
|
protected Properties |
init()
Initialize the authorized credential generator.
|
create, getAllowedCredentials, getCredentialGenerator, getDisallowedCredentials, getSystemProperties, initpublic static com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] READER_OPS
public static com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] WRITER_OPS
public static com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] QUERY_OPS
protected Properties init() throws IllegalArgumentException
AuthzCredentialGeneratorinit in class AuthzCredentialGeneratorIllegalArgumentException - when the CredentialGenerator is incompatible with
this authorization module.public AuthzCredentialGenerator.ClassCode classCode()
AuthzCredentialGeneratorAuthzCredentialGenerator.ClassCode of the particular implementation.classCode in class AuthzCredentialGeneratorClassCodepublic String getAuthorizationCallback()
AuthzCredentialGeneratorAccessControl factory function that should be used
as the authorization module on the server side.getAuthorizationCallback in class AuthzCredentialGeneratorAccessControl factory functionprotected Principal getAllowedPrincipal(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] opCodes, String[] regionNames, int index)
AuthzCredentialGeneratorPrincipal generated using the given index allowed to perform
the given OperationContext.OperationCodes for the given region.
Required to be implemented by concrete classes that implement this abstract
class.getAllowedPrincipal in class AuthzCredentialGeneratoropCodes - the OperationContext.OperationCodes of the operations requiring
authorizationregionNames - list of the region names requiring authorization; a value of
null indicates all regionsindex - used to generate multiple such principals by passing
different values for thisPrincipal authorized to perform the given operation in
the given regionprotected Principal getDisallowedPrincipal(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] opCodes, String[] regionNames, int index)
AuthzCredentialGeneratorPrincipal generated using the given index not allowed to
perform the given OperationContext.OperationCodes for the given region.
Required to be implemented by concrete classes that implement this abstract
class.getDisallowedPrincipal in class AuthzCredentialGeneratoropCodes - the OperationContext.OperationCodes of the operations requiring
authorization failureregionNames - list of the region names requiring authorization failure; a
value of null indicates all regionsindex - used to generate multiple such principals by passing
different values for thisPrincipal not authorized to perform the given operation
in the given regionprotected int getNumPrincipalTries(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[] opCodes,
String[] regionNames)
AuthzCredentialGeneratorAuthzCredentialGenerator.getAllowedPrincipal(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[], java.lang.String[], int) method returns valid principals for values of
index from 0 through (n-1) where n is the
value returned by this method. It is recommended that the principals so
returned be unique for efficiency.
This will be used by AuthzCredentialGenerator.getAllowedCredentials(com.gemstone.gemfire.cache.operations.OperationContext.OperationCode[], java.lang.String[], int) to step through
different principals and obtain a set of valid credentials.
Required to be implemented by concrete classes that implement this abstract
class.getNumPrincipalTries in class AuthzCredentialGeneratoropCodes - the OperationContext.OperationCodes of the operations requiring
authorizationregionNames - list of the region names requiring authorization; a value of
null indicates all regionsCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.