Documentation
¶
Index ¶
- Constants
- type CreateKeyReply
- type CreateKeyRequest
- type CreateStatusListEntryReply
- type CreateStatusListEntryRequest
- type CreateTokenReply
- type CreateTokenRequest
- type CredentialRegistration
- type GetIssuerMetadataReply
- type GetIssuerMetadataReq
- type HistoryRecord
- type IssuanceReply
- type IssuanceRequest
- type IssuerRegistration
- type RecordEventType
- type RetrievalAcceptanceNotification
- type RetrievalNotification
- type RetrievalOffering
- type StorageServiceStoreMessage
- type TenantIdentityAppDeleteRequest
- type TenantIdentityAppReply
- type TenantIdentityAppRequest
- type TenantIdentityAuthorization
- type TenantIdentityClient
- type TenantIdentityDeleteRequest
- type TenantIdentityReply
- type TenantIdentityRequest
- type TenantIdentityUserCloudEvent
- type TenantIdentityUserEvent
- type VerifyStatusListEntryReply
- type VerifyStatusListEntryRequest
Constants ¶
const ( EventTypeRetrievalExternal = "retrieval.offering.external" EventTypeRetrievalAcceptanceNotification = "retrieval.offering.acceptance" EventTypeRetrievalReceivedNotification = "retrieval.offering.received" TopicRetrevialSubscription = "retrieval.offering.subscription" TopicRetrevialPublication = "retrieval.offering.publication" )
const ( SignerServiceCreateKeyType string = "signer.createKey" SignerServiceSignTokenType string = "signer.signToken" SignerServiceErrorType string = "signer.error" )
const ( EventTypeStatus = "status.data" TopicStatusData = "status.data.create" TopicStatusDataVerify = "status.data.verify" )
const ( StorePresentationType = "storage.service.presentation" StoreCredentialType = "storage.service.credential" StorageTopic = "storage.service.store" )
const ( MessageTypeTenantManagement = "tenant.management" TenantIdentityCreate = "tenant.management.identity.create" TenantIdentityUpdate = "tenant.management.identity.update" TenantIdentityDelete = "tenant.management.identity.delete" TenantIdentityAppCreate = "tenant.management.identity.app.create" TenantIdentityAppUpdate = "tenant.management.identity.app.update" TenantIdentityAppDelete = "tenant.management.identity.app.delete" TenantIdentityUserCreated = "tenant.management.identity.user.created" TenantIdentityUserDeleted = "tenant.management.identity.user.deleted" TenantIdentityUserCreatedEventType = "org.eclipse.xfsc.identity.user.created" TenantIdentityUserDeletedEventType = "org.eclipse.xfsc.identity.user.deleted" )
const ( TopicGetIssuerMetadata = "wellknown.issuer.metadata" EventTypeGetIssuerMetadata = "wellknown.issuer.metadata" )
const ( TopicIssuerRegistration = "wellknown.issuer.registration" EventTypeIssuerRegistration = "wellknown.issuer.registration" EventTypeIssuerCredentialRegistration = "wellknown.issuer.credential.registration" )
const (
EventTypeIssuance = "issuance.request"
)
const SourceWellKnownService = "wellknown"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateKeyReply ¶
type CreateKeyRequest ¶
type CreateStatusListEntryRequest ¶
type CreateStatusListEntryRequest struct {
common.Request
Origin string `json:"origin"`
// Signer binding for the status list.
// Diese Werte bleiben für die erzeugte Liste stabil.
Key string `json:"key"`
DID string `json:"did"`
Namespace string `json:"namespace"`
// Optional, aber praktisch für Signer-Service / OCM-Kontext.
Group string `json:"group,omitempty"`
// Optional: StatusList2021, statuslist+jwt, etc.
Type string `json:"type,omitempty"`
Purpose string `json:"purpose,omitempty"`
// Der Service speichert daraus das Maximum aller Expiration Dates
// der StatusList.
ExpirationDate time.Time `json:"expirationDate"`
}
type CreateTokenReply ¶
type CreateTokenRequest ¶
type CredentialRegistration ¶ added in v1.1.14
type CredentialRegistration struct {
common.Request
Issuer string `json:"issuer"`
ConfigurationId string `json:"ConfigurationId"`
CredentialConfiguration credential.CredentialConfiguration `json:"CredentialConfiguration"`
}
type GetIssuerMetadataReply ¶
type GetIssuerMetadataReply struct {
common.Reply
Issuer *credential.IssuerMetadata
}
type GetIssuerMetadataReq ¶
type HistoryRecord ¶
type IssuanceReply ¶
type IssuanceReply struct {
common.Reply
Offer credential.CredentialOffer `json:"offer"`
}
type IssuanceRequest ¶
type IssuerRegistration ¶
type IssuerRegistration struct {
common.Request
Issuer credential.IssuerMetadata `json:"issuer"`
}
type RecordEventType ¶
type RecordEventType string
const ( Consent RecordEventType = "consent" Pairing RecordEventType = "pairing" Issued RecordEventType = "issued" Presented RecordEventType = "presented" Revoked RecordEventType = "revoked" PresentationRequest RecordEventType = "presentationRequest" DeviceConnection RecordEventType = "device.connection" )
func RecordEventTypes ¶
func RecordEventTypes() []RecordEventType
type RetrievalAcceptanceNotification ¶
type RetrievalAcceptanceNotification struct {
common.Request
OfferingId string `json:"offeringId"`
Message string `json:"message"`
Result bool `json:"result"`
HolderKey string `json:"holderKey`
HolderNamespace string `json:"holderNamespace`
HolderGroup string `json:"holderGroup`
TxCode string `json:"tx_code`
}
Notification when something was accepted --> EventTypeRetrievalAcceptanceNotification
type RetrievalNotification ¶
type RetrievalNotification struct {
common.Request
Offer credential.CredentialOfferParameters `json:"offerParams"`
}
Notification when something was received --> EventTypeRetrievalReceivedNotification
type RetrievalOffering ¶
type RetrievalOffering struct {
common.Request
Offer credential.CredentialOffer `json:"offer"`
}
Incoming Event for Offerings --> EventTypeRetrievalExternal
type TenantIdentityAppDeleteRequest ¶ added in v1.5.2
func (TenantIdentityAppDeleteRequest) Validate ¶ added in v1.5.2
func (r TenantIdentityAppDeleteRequest) Validate() error
type TenantIdentityAppReply ¶ added in v1.5.2
type TenantIdentityAppRequest ¶ added in v1.5.2
type TenantIdentityAppRequest struct {
common.Request
AppId string `json:"appId"`
Name string `json:"name,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Authorization *TenantIdentityAuthorization `json:"authorization,omitempty"`
Client *TenantIdentityClient `json:"client,omitempty"`
}
func (TenantIdentityAppRequest) Validate ¶ added in v1.5.2
func (r TenantIdentityAppRequest) Validate() error
Validate checks the mandatory identifiers and any supplied application configuration. For create operations, use ValidateCreate to require full OIDC configuration.
func (TenantIdentityAppRequest) ValidateCreate ¶ added in v1.5.2
func (r TenantIdentityAppRequest) ValidateCreate() error
type TenantIdentityAuthorization ¶ added in v1.5.2
type TenantIdentityClient ¶ added in v1.5.2
type TenantIdentityClient struct {
Type string `json:"type"`
}
type TenantIdentityDeleteRequest ¶ added in v1.5.2
func (TenantIdentityDeleteRequest) Validate ¶ added in v1.5.2
func (r TenantIdentityDeleteRequest) Validate() error
type TenantIdentityReply ¶ added in v1.5.2
type TenantIdentityRequest ¶ added in v1.5.2
type TenantIdentityRequest struct {
common.Request
Enabled *bool `json:"enabled,omitempty"`
RegistrationAllowed *bool `json:"registrationAllowed,omitempty"`
DisplayName string `json:"displayName,omitempty"`
}
func (TenantIdentityRequest) Validate ¶ added in v1.5.2
func (r TenantIdentityRequest) Validate() error
type TenantIdentityUserCloudEvent ¶ added in v1.5.3
type TenantIdentityUserCloudEvent struct {
SpecVersion string `json:"specversion"`
ID string `json:"id"`
Source string `json:"source"`
Type string `json:"type"`
Subject string `json:"subject,omitempty"`
Time time.Time `json:"time"`
DataContentType string `json:"datacontenttype,omitempty"`
Data TenantIdentityUserEvent `json:"data"`
}
TenantIdentityUserCloudEvent models the structured CloudEvents 1.0 JSON payload.
func ParseTenantIdentityUserEvent ¶ added in v1.5.3
func ParseTenantIdentityUserEvent(payload []byte) (*TenantIdentityUserCloudEvent, error)
func ParseTenantIdentityUserEventForSubject ¶ added in v1.5.3
func ParseTenantIdentityUserEventForSubject(subject string, payload []byte) (*TenantIdentityUserCloudEvent, error)
func (TenantIdentityUserCloudEvent) Validate ¶ added in v1.5.3
func (e TenantIdentityUserCloudEvent) Validate() error
type TenantIdentityUserEvent ¶ added in v1.5.3
type TenantIdentityUserEvent struct {
RealmID string `json:"realmId"`
UserID string `json:"userId"`
Email string `json:"email,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
}
TenantIdentityUserEvent contains user information from an identity provider.
func (TenantIdentityUserEvent) Validate ¶ added in v1.5.3
func (e TenantIdentityUserEvent) Validate() error
type VerifyStatusListEntryRequest ¶
type VerifyStatusListEntryRequest struct {
common.Request
Namespace string `json:"namespace"`
// Optional, aber praktisch für Signer-Service / OCM-Kontext.
Group string `json:"group,omitempty"`
Index int `json:"index"`
StatusUrl string `json:"statusUrl"`
Type string `json:"type"`
Purpose string `json:"purpose"`
}