Interface | osid.authorization.AuthorizationSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This is the basic session for verifying authorizations. | ||
Method | getVaultId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Vault Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getVault | ||
Description |
Gets the | ||
Return | osid.authorization.Vault | the Vault associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canAccessAuthorizations | ||
Description |
Tests if this user can perform authorization checks. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known all methods in this session will result in a | ||
Return | boolean | false if authorization methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | isAuthorized | ||
Description |
Determines if the given agent is authorized. An agent
is authorized if an active authorization exists whose
The | ||
Parameters | osid.id.Id | agentId | the Id of an Agent |
osid.id.Id | functionId | the Id of a Function | |
osid.id.Id | qualifierId | the Id of a Qualifier | |
Return | boolean | true if the user is authorized, false
othersise | |
Errors | NOT_FOUND | functionId is not found | |
NULL_ARGUMENT | agentId , functionId or qualifierId
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure making request | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
Authorizations may be stored in a normalized form with
respect to various Resources and created using specific
nodes in a Querying the authorization service may in itself
require a separate authorization. A | ||
Method | getAuthorizationCondition | ||
Description |
Gets the | ||
Parameters | osid.id.Id | functionId | the Id of a Function |
Return | osid.authorization.AuthorizationCondition | an authorization condition | |
Errors | NOT_FOUND | functionId is not found | |
NULL_ARGUMENT | functionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure making request | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAuthorizedOnCondition | ||
Description |
Determines if the given agent is authorized. An agent
is authorized if an active authorization exists whose
The | ||
Parameters | osid.id.Id | agentId | the Id of an Agent |
osid.id.Id | functionId | the Id of a Function | |
osid.id.Id | qualifierId | the Id of a Qualifier | |
osid.authorization.AuthorizationCondition | condition | an authorization condition | |
Return | boolean | true if the user is authorized, false
othersise | |
Errors | NOT_FOUND | functionId is not found | |
NULL_ARGUMENT | agentId , functionId, qualifierId , or
condition is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure making request | ||
UNSUPPORTED | condition is not of this service | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
Authorizations may be stored in a normalized form with
respect to various Resources and created using specific
nodes in a Querying the authorization service may in itself
require a separate authorization. A |