Documentation ¶
Index ¶
- type AriesServices
- func (p *AriesServices) Close() error
- func (p *AriesServices) Crypto() crypto.Crypto
- func (p *AriesServices) JSONLDDocumentLoader() jsonld.DocumentLoader
- func (p *AriesServices) KMS() kms.KeyManager
- func (p *AriesServices) MediaTypeProfiles() []string
- func (p *AriesServices) SetStorageProvider(sp storage.Provider)
- func (p *AriesServices) StorageProvider() storage.Provider
- func (p *AriesServices) VDRegistry() vdrapi.Registry
- type IDTokenClaims
- type IDTokenVPToken
- type InitiateOIDC4VPResponse
- type JWSSigner
- type RequestObject
- type RequestObjectClaims
- type RequestObjectRegistration
- type Service
- type VPFlowExecutor
- func (e *VPFlowExecutor) CreateAuthorizedResponse() (string, error)
- func (e *VPFlowExecutor) FetchRequestObject(authorizationRequest string) (string, error)
- func (e *VPFlowExecutor) InitiateInteraction(url, authToken string) (*InitiateOIDC4VPResponse, error)
- func (e *VPFlowExecutor) QueryCredentialFromWallet() error
- func (e *VPFlowExecutor) RequestPresentation() *verifiable.Presentation
- func (e *VPFlowExecutor) RetrieveInteractionsClaim(url, authToken string) error
- func (e *VPFlowExecutor) SendAuthorizedResponse(responseBody string) error
- func (e *VPFlowExecutor) VerifyAuthorizationRequestAndDecodeClaims(rawRequestObject string) error
- type VPToken
- type VPTokenClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AriesServices ¶
type AriesServices struct {
// contains filtered or unexported fields
}
func (*AriesServices) Close ¶
func (p *AriesServices) Close() error
Close frees resources being maintained by the framework.
func (*AriesServices) Crypto ¶
func (p *AriesServices) Crypto() crypto.Crypto
func (*AriesServices) JSONLDDocumentLoader ¶
func (p *AriesServices) JSONLDDocumentLoader() jsonld.DocumentLoader
func (*AriesServices) KMS ¶
func (p *AriesServices) KMS() kms.KeyManager
func (*AriesServices) MediaTypeProfiles ¶
func (p *AriesServices) MediaTypeProfiles() []string
func (*AriesServices) SetStorageProvider ¶
func (p *AriesServices) SetStorageProvider(sp storage.Provider)
func (*AriesServices) StorageProvider ¶
func (p *AriesServices) StorageProvider() storage.Provider
func (*AriesServices) VDRegistry ¶
func (p *AriesServices) VDRegistry() vdrapi.Registry
type IDTokenClaims ¶
type IDTokenClaims struct { VPToken IDTokenVPToken `json:"_vp_token"` Nonce string `json:"nonce"` Exp int64 `json:"exp"` Iss string `json:"iss"` }
type IDTokenVPToken ¶
type IDTokenVPToken struct {
PresentationSubmission *presexch.PresentationSubmission `json:"presentation_submission"`
}
type InitiateOIDC4VPResponse ¶
type JWSSigner ¶
type JWSSigner struct {
// contains filtered or unexported fields
}
func NewJWSSigner ¶
func NewJWSSigner(keyID string, signingAlgorithm string, signer vc.SignerAlgorithm) *JWSSigner
func (*JWSSigner) Headers ¶
Headers provides JWS headers. "alg" header must be provided (see https://tools.ietf.org/html/rfc7515#section-4.1)
type RequestObject ¶
type RequestObject struct { JTI string `json:"jti"` IAT int64 `json:"iat"` ResponseType string `json:"response_type"` ResponseMode string `json:"response_mode"` Scope string `json:"scope"` Nonce string `json:"nonce"` ClientID string `json:"client_id"` RedirectURI string `json:"redirect_uri"` State string `json:"state"` Exp int64 `json:"exp"` Registration RequestObjectRegistration `json:"registration"` Claims RequestObjectClaims `json:"claims"` }
type RequestObjectClaims ¶
type RequestObjectClaims struct {
VPToken VPToken `json:"vp_token"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(vcProviderType string, opts ...vcprovider.ConfigOption) (*Service, error)
func (*Service) CreateWallet ¶
func (*Service) GetConfig ¶
func (s *Service) GetConfig() *vcprovider.Config
func (*Service) NewVPFlowExecutor ¶
func (s *Service) NewVPFlowExecutor() *VPFlowExecutor
func (*Service) RunOIDC4VPFlow ¶
func (*Service) SaveCredentialInWallet ¶
type VPFlowExecutor ¶
type VPFlowExecutor struct {
// contains filtered or unexported fields
}
func (*VPFlowExecutor) CreateAuthorizedResponse ¶
func (e *VPFlowExecutor) CreateAuthorizedResponse() (string, error)
func (*VPFlowExecutor) FetchRequestObject ¶
func (e *VPFlowExecutor) FetchRequestObject(authorizationRequest string) (string, error)
func (*VPFlowExecutor) InitiateInteraction ¶
func (e *VPFlowExecutor) InitiateInteraction(url, authToken string) (*InitiateOIDC4VPResponse, error)
func (*VPFlowExecutor) QueryCredentialFromWallet ¶
func (e *VPFlowExecutor) QueryCredentialFromWallet() error
func (*VPFlowExecutor) RequestPresentation ¶
func (e *VPFlowExecutor) RequestPresentation() *verifiable.Presentation
func (*VPFlowExecutor) RetrieveInteractionsClaim ¶
func (e *VPFlowExecutor) RetrieveInteractionsClaim(url, authToken string) error
func (*VPFlowExecutor) SendAuthorizedResponse ¶
func (e *VPFlowExecutor) SendAuthorizedResponse(responseBody string) error
func (*VPFlowExecutor) VerifyAuthorizationRequestAndDecodeClaims ¶
func (e *VPFlowExecutor) VerifyAuthorizationRequestAndDecodeClaims(rawRequestObject string) error
type VPToken ¶
type VPToken struct {
PresentationDefinition *presexch.PresentationDefinition `json:"presentation_definition"`
}
type VPTokenClaims ¶
type VPTokenClaims struct { VP *verifiable.Presentation `json:"vp"` Nonce string `json:"nonce"` Exp int64 `json:"exp"` Iss string `json:"iss"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.