Documentation ¶
Index ¶
- Constants
- type CredentialManifestContainer
- type CredentialResponseContainer
- type Service
- func (s Service) Config() config.ManifestServiceConfig
- func (s Service) CreateManifest(ctx context.Context, request model.CreateManifestRequest) (*model.CreateManifestResponse, error)
- func (s Service) CreateRequest(ctx context.Context, req model.CreateRequestRequest) (*model.Request, error)
- func (s Service) DeleteApplication(ctx context.Context, request model.DeleteApplicationRequest) error
- func (s Service) DeleteManifest(ctx context.Context, request model.DeleteManifestRequest) error
- func (s Service) DeleteRequest(ctx context.Context, request model.DeleteRequestRequest) error
- func (s Service) DeleteResponse(ctx context.Context, request model.DeleteResponseRequest) error
- func (s Service) GetApplication(ctx context.Context, request model.GetApplicationRequest) (*model.GetApplicationResponse, error)
- func (s Service) GetManifest(ctx context.Context, request model.GetManifestRequest) (*model.GetManifestResponse, error)
- func (s Service) GetRequest(ctx context.Context, request *model.GetRequestRequest) (*model.Request, error)
- func (s Service) GetResponse(ctx context.Context, request model.GetResponseRequest) (*model.GetResponseResponse, error)
- func (s Service) ListApplications(ctx context.Context) (*model.ListApplicationsResponse, error)
- func (s Service) ListManifests(ctx context.Context) (*model.ListManifestsResponse, error)
- func (s Service) ListRequests(ctx context.Context) (*model.ListRequestsResponse, error)
- func (s Service) ListResponses(ctx context.Context) (*model.ListResponsesResponse, error)
- func (s Service) ProcessApplicationSubmission(ctx context.Context, request model.SubmitApplicationRequest) (*operation.Operation, error)
- func (s Service) ReviewApplication(ctx context.Context, request model.ReviewApplicationRequest) (*model.SubmitApplicationResponse, error)
- func (s Service) Status() framework.Status
- func (s Service) Type() framework.Type
- func (s Service) VerifyManifest(ctx context.Context, request model.VerifyManifestRequest) (*model.VerifyManifestResponse, error)
Constants ¶
const ( // DenialResponse is an error response corresponding to a credential denial DenialResponse errresp.Type = "DenialResponse" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialManifestContainer ¶
type CredentialManifestContainer struct {
Manifest manifest.CredentialManifest `json:"credential_manifest"`
}
CredentialManifestContainer represents what is signed over and return for a credential manifest
type CredentialResponseContainer ¶
type CredentialResponseContainer struct { Response manifest.CredentialResponse `json:"credential_response"` Credentials []any `json:"verifiableCredentials,omitempty"` }
CredentialResponseContainer represents what is signed over and return for a credential response
type Service ¶
func NewManifestService ¶
func NewManifestService(config config.ManifestServiceConfig, s storage.ServiceStorage, keyStore *keystore.Service, didResolver resolution.Resolver, credential *credential.Service, presentationSvc *presentation.Service) (*Service, error)
func (Service) Config ¶
func (s Service) Config() config.ManifestServiceConfig
func (Service) CreateManifest ¶
func (s Service) CreateManifest(ctx context.Context, request model.CreateManifestRequest) (*model.CreateManifestResponse, error)
func (Service) CreateRequest ¶
func (Service) DeleteApplication ¶
func (Service) DeleteManifest ¶
func (Service) DeleteRequest ¶
func (Service) DeleteResponse ¶
func (Service) GetApplication ¶
func (s Service) GetApplication(ctx context.Context, request model.GetApplicationRequest) (*model.GetApplicationResponse, error)
func (Service) GetManifest ¶
func (s Service) GetManifest(ctx context.Context, request model.GetManifestRequest) (*model.GetManifestResponse, error)
func (Service) GetRequest ¶
func (Service) GetResponse ¶
func (s Service) GetResponse(ctx context.Context, request model.GetResponseRequest) (*model.GetResponseResponse, error)
func (Service) ListApplications ¶
func (Service) ListManifests ¶
func (Service) ListRequests ¶
func (Service) ListResponses ¶
func (Service) ProcessApplicationSubmission ¶
func (s Service) ProcessApplicationSubmission(ctx context.Context, request model.SubmitApplicationRequest) (*operation.Operation, error)
ProcessApplicationSubmission stores the application in a pending state, along with an operation. When there is an issuance template related to this manifest, the operation is done immediately. Once the operation is done, the Operation.Response field will be of type model.SubmitApplicationResponse. Invalid applications return an operation marked as done, with Response that represents denial. The state of the application can be updated by calling CancelOperation, or by calling ReviewApplicationSubmission. When the state is updated, the operation is marked as done.
func (Service) ReviewApplication ¶
func (s Service) ReviewApplication(ctx context.Context, request model.ReviewApplicationRequest) (*model.SubmitApplicationResponse, error)
ReviewApplication moves an application state and marks the operation associated with it as done. A credential response is stored.
func (Service) VerifyManifest ¶
func (s Service) VerifyManifest(ctx context.Context, request model.VerifyManifestRequest) (*model.VerifyManifestResponse, error)
VerifyManifest verifies a manifest's signature and makes sure the manifest is compliant with the specification