OSID Logo
OSID Specifications
authentication process package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authentication.process.CircleOfTrustSession
Implementsosid.OsidSession
Description

This session examines the relationship between Agents and Trusts.

  • isolated agency view: All agent methods in this session operate, retrieve and pertain to trusts defined explicitly in the current agency.
  • federated agency view: All trust methods in this session operate, retrieve and pertain to all trusts defined in this agency and any other trusts implicitly available in this agency through agency inheritence.
MethodgetAgencyId
Description

Gets the Agency Id associated with this session.

Returnosid.id.Idthe Agency Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAgency
Description

Gets the Agency associated with this session.

Returnosid.authentication.Agencythe Agency associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupTrustCircles
Description

Tests if this user can look up trusts for agents. A return of true does not guarantee successful authorization. A return of false indicates that it is known these methods will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to users outside the circle.

Returnboolean false if trust methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedAgencyView
Description

Federates the view for methods in this session. A federated view will include trusts in agencies which are children of this agency in the agency hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedAgencyView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this agency only.

CompliancemandatoryThis method is must be implemented.
MethodgetTrust
Description

Gets a trust level for the given agent. An Agent may be in one circle of trust that, in turn, is inside another circle of trust. To test whether an agent is inside a specific circle, use IsInCircle().

Parametersosid.id.IdagentIdan agent Id
Returnosid.authentication.process.Trustthe trust
ErrorsNOT_FOUND agentId is not found
NULL_ARGUMENT agentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisInCircle
Description

Tests if the given agent is inside the given circle of trust.

Parametersosid.id.IdagentIdan agent Id
Returnboolean true if the agent is in the given trust, false if agent not found or is outside the circle
ErrorsNULL_ARGUMENT agentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.