public class Authorizer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Authorizer.AuthorizationInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFINED_RIGHTS_ELEMENT |
static java.lang.String |
FORWARDING_ELEMENT |
static java.lang.String |
REPO_DEFAULT_RIGHTS_ELEMENT |
static java.lang.String |
RIGHTS_ELEMENT |
static java.lang.String |
USE_IDENTITY_KEY |
static java.lang.String |
USE_REPOSITORY_ID |
Constructor and Description |
---|
Authorizer(Main serverMain) |
Modifier and Type | Method and Description |
---|---|
Authorizer.AuthorizationInfo |
forwardingIsAllowed(DOOperationContext opContext,
Authorizer.AuthorizationInfo authInfo)
This is called to determine if and how the given operation can be forwarded to a
remote repository.
|
java.lang.String[] |
getExplicitAccepts(StorageProxy storage,
java.lang.String operationID)
Return a list of entities who are explicitly given permission to perform the
given operation on the object.
|
boolean |
operationIsAllowed(DOOperationContext opContext)
This is called to determine if the given operation can be
performed in the given context (ie if the caller has permission
to perform the operation).
|
boolean |
operationIsAllowed(DOOperationContext opContext,
java.lang.String objectID,
java.lang.String operationID)
This is called to determine if the given operation can be performed in the given
context.
|
public static final java.lang.String RIGHTS_ELEMENT
public static final java.lang.String FORWARDING_ELEMENT
public static final java.lang.String REPO_DEFAULT_RIGHTS_ELEMENT
public static final java.lang.String DEFINED_RIGHTS_ELEMENT
public static final java.lang.String USE_IDENTITY_KEY
public static final java.lang.String USE_REPOSITORY_ID
public Authorizer(Main serverMain)
public boolean operationIsAllowed(DOOperationContext opContext)
public boolean operationIsAllowed(DOOperationContext opContext, java.lang.String objectID, java.lang.String operationID)
public java.lang.String[] getExplicitAccepts(StorageProxy storage, java.lang.String operationID) throws java.io.IOException
java.io.IOException
public Authorizer.AuthorizationInfo forwardingIsAllowed(DOOperationContext opContext, Authorizer.AuthorizationInfo authInfo)