Documentation
¶
Index ¶
- Variables
- type Claims
- func (*Claims) Descriptor() ([]byte, []int)deprecated
- func (x *Claims) GetAud() []string
- func (x *Claims) GetExp() int64
- func (x *Claims) GetIat() int64
- func (x *Claims) GetIss() string
- func (x *Claims) GetJti() string
- func (x *Claims) GetNbf() int64
- func (x *Claims) GetSub() string
- func (*Claims) ProtoMessage()
- func (x *Claims) ProtoReflect() protoreflect.Message
- func (x *Claims) Reset()
- func (x *Claims) String() string
- type CredentialApplication
- func (*CredentialApplication) Descriptor() ([]byte, []int)deprecated
- func (x *CredentialApplication) GetFormat() *Format
- func (x *CredentialApplication) GetId() string
- func (x *CredentialApplication) GetManifestId() string
- func (*CredentialApplication) ProtoMessage()
- func (x *CredentialApplication) ProtoReflect() protoreflect.Message
- func (x *CredentialApplication) Reset()
- func (x *CredentialApplication) String() string
- type Format
- func (*Format) Descriptor() ([]byte, []int)deprecated
- func (x *Format) GetJwt() *JwtType
- func (x *Format) GetJwtVc() *JwtType
- func (x *Format) GetJwtVp() *JwtType
- func (x *Format) GetLdp() *LdpType
- func (x *Format) GetLdpVc() *LdpType
- func (x *Format) GetLdpVp() *LdpType
- func (*Format) ProtoMessage()
- func (x *Format) ProtoReflect() protoreflect.Message
- func (x *Format) Reset()
- func (x *Format) String() string
- type JSONWebEncryption
- func (*JSONWebEncryption) Descriptor() ([]byte, []int)deprecated
- func (x *JSONWebEncryption) GetAad() string
- func (x *JSONWebEncryption) GetCiphertext() string
- func (x *JSONWebEncryption) GetEncryptedKey() string
- func (x *JSONWebEncryption) GetHeader() []byte
- func (x *JSONWebEncryption) GetIv() string
- func (x *JSONWebEncryption) GetProtected() string
- func (x *JSONWebEncryption) GetRecipients() []byte
- func (x *JSONWebEncryption) GetTag() string
- func (x *JSONWebEncryption) GetUnprotected() []byte
- func (*JSONWebEncryption) ProtoMessage()
- func (x *JSONWebEncryption) ProtoReflect() protoreflect.Message
- func (x *JSONWebEncryption) Reset()
- func (x *JSONWebEncryption) String() string
- type JSONWebKey
- func (*JSONWebKey) Descriptor() ([]byte, []int)deprecated
- func (x *JSONWebKey) GetAlg() string
- func (x *JSONWebKey) GetCertificate() []*anypb.Any
- func (x *JSONWebKey) GetCertificateThumbprintSHA1() []byte
- func (x *JSONWebKey) GetCertificateThumbprintSHA256() []byte
- func (x *JSONWebKey) GetCertificatesUrl() string
- func (x *JSONWebKey) GetCrv() string
- func (x *JSONWebKey) GetD() string
- func (x *JSONWebKey) GetKey() *anypb.Any
- func (x *JSONWebKey) GetKid() string
- func (x *JSONWebKey) GetKty() string
- func (x *JSONWebKey) GetUse() string
- func (x *JSONWebKey) GetX() string
- func (x *JSONWebKey) GetY() string
- func (*JSONWebKey) ProtoMessage()
- func (x *JSONWebKey) ProtoReflect() protoreflect.Message
- func (x *JSONWebKey) Reset()
- func (x *JSONWebKey) String() string
- type JwtType
- type LdpType
- type Recipient
- func (*Recipient) Descriptor() ([]byte, []int)deprecated
- func (x *Recipient) GetEncryptedKey() string
- func (x *Recipient) GetHeader() *RecipientHeaders
- func (*Recipient) ProtoMessage()
- func (x *Recipient) ProtoReflect() protoreflect.Message
- func (x *Recipient) Reset()
- func (x *Recipient) String() string
- type RecipientHeaders
- func (*RecipientHeaders) Descriptor() ([]byte, []int)deprecated
- func (x *RecipientHeaders) GetAlg() string
- func (x *RecipientHeaders) GetApu() string
- func (x *RecipientHeaders) GetApv() string
- func (x *RecipientHeaders) GetEpk() []byte
- func (x *RecipientHeaders) GetIv() string
- func (x *RecipientHeaders) GetKid() string
- func (x *RecipientHeaders) GetTag() string
- func (*RecipientHeaders) ProtoMessage()
- func (x *RecipientHeaders) ProtoReflect() protoreflect.Message
- func (x *RecipientHeaders) Reset()
- func (x *RecipientHeaders) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_did_jwk_types_jwk_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { Iss string `protobuf:"bytes,1,opt,name=iss,proto3" json:"iss,omitempty"` // issuer Sub string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"` // subject Aud []string `protobuf:"bytes,3,rep,name=aud,proto3" json:"aud,omitempty"` // audience Exp int64 `protobuf:"varint,4,opt,name=exp,proto3" json:"exp,omitempty"` // expiry Nbf int64 `protobuf:"varint,5,opt,name=nbf,proto3" json:"nbf,omitempty"` // NotBefore Iat int64 `protobuf:"varint,6,opt,name=iat,proto3" json:"iat,omitempty"` // IssuedAt Jti string `protobuf:"bytes,7,opt,name=jti,proto3" json:"jti,omitempty"` // id // contains filtered or unexported fields }
Claims represents public claim values (as specified in RFC 7519). swagger:model
func (*Claims) Descriptor
deprecated
func (*Claims) ProtoMessage ¶
func (*Claims) ProtoMessage()
func (*Claims) ProtoReflect ¶
func (x *Claims) ProtoReflect() protoreflect.Message
type CredentialApplication ¶
type CredentialApplication struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The value of this property MUST be the ID of a valid Credential Manifest. ManifestId string `protobuf:"bytes,2,opt,name=manifest_id,json=manifestId,proto3" json:"manifest_id,omitempty"` // Must be a subset of the format property of the CredentialManifest that this CredentialApplication is related to Format *Format `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
CredentialApplication represents a credential_application object as defined in https://identity.foundation/credential-manifest/#credential-application. Note that the term "Credential Application" is overloaded in the spec - a "Credential Application" may be referring to one of two different, but related, concepts. A "Credential Application" can be the object defined below, which is intended to be embedded in an envelope like a Verifiable Presentation. Additionally, when that envelope contains the object defined below under a field named "credential_application", then that envelope itself can be called a "Credential Application". The larger "envelope version" of a Credential Application may also have a sibling presentation_submission object within the envelope, as demonstrated by the PresentCredentialApplication method. See https://github.com/decentralized-identity/credential-manifest/issues/73 for more information about this name overloading. swagger:model
func (*CredentialApplication) Descriptor
deprecated
func (*CredentialApplication) Descriptor() ([]byte, []int)
Deprecated: Use CredentialApplication.ProtoReflect.Descriptor instead.
func (*CredentialApplication) GetFormat ¶
func (x *CredentialApplication) GetFormat() *Format
func (*CredentialApplication) GetId ¶
func (x *CredentialApplication) GetId() string
func (*CredentialApplication) GetManifestId ¶
func (x *CredentialApplication) GetManifestId() string
func (*CredentialApplication) ProtoMessage ¶
func (*CredentialApplication) ProtoMessage()
func (*CredentialApplication) ProtoReflect ¶
func (x *CredentialApplication) ProtoReflect() protoreflect.Message
func (*CredentialApplication) Reset ¶
func (x *CredentialApplication) Reset()
func (*CredentialApplication) String ¶
func (x *CredentialApplication) String() string
type Format ¶
type Format struct { Jwt *JwtType `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` JwtVc *JwtType `protobuf:"bytes,2,opt,name=jwt_vc,json=jwtVc,proto3" json:"jwt_vc,omitempty"` JwtVp *JwtType `protobuf:"bytes,3,opt,name=jwt_vp,json=jwtVp,proto3" json:"jwt_vp,omitempty"` Ldp *LdpType `protobuf:"bytes,4,opt,name=ldp,proto3" json:"ldp,omitempty"` LdpVc *LdpType `protobuf:"bytes,5,opt,name=ldp_vc,json=ldpVc,proto3" json:"ldp_vc,omitempty"` LdpVp *LdpType `protobuf:"bytes,6,opt,name=ldp_vp,json=ldpVp,proto3" json:"ldp_vp,omitempty"` // contains filtered or unexported fields }
Format describes PresentationDefinition`s Format field.
func (*Format) Descriptor
deprecated
func (*Format) ProtoMessage ¶
func (*Format) ProtoMessage()
func (*Format) ProtoReflect ¶
func (x *Format) ProtoReflect() protoreflect.Message
type JSONWebEncryption ¶
type JSONWebEncryption struct { Protected string `protobuf:"bytes,1,opt,name=protected,proto3" json:"protected,omitempty"` Unprotected []byte `protobuf:"bytes,2,opt,name=unprotected,proto3" json:"unprotected,omitempty"` Recipients []byte `protobuf:"bytes,3,opt,name=recipients,proto3" json:"recipients,omitempty"` EncryptedKey string `protobuf:"bytes,4,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"` Header []byte `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` Aad string `protobuf:"bytes,6,opt,name=aad,proto3" json:"aad,omitempty"` Iv string `protobuf:"bytes,7,opt,name=iv,proto3" json:"iv,omitempty"` Ciphertext string `protobuf:"bytes,8,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` Tag string `protobuf:"bytes,9,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
JSONWebEncryption represents a RAW JWE that is used for serialization/deserialization. swagger:model
func (*JSONWebEncryption) Descriptor
deprecated
func (*JSONWebEncryption) Descriptor() ([]byte, []int)
Deprecated: Use JSONWebEncryption.ProtoReflect.Descriptor instead.
func (*JSONWebEncryption) GetAad ¶
func (x *JSONWebEncryption) GetAad() string
func (*JSONWebEncryption) GetCiphertext ¶
func (x *JSONWebEncryption) GetCiphertext() string
func (*JSONWebEncryption) GetEncryptedKey ¶
func (x *JSONWebEncryption) GetEncryptedKey() string
func (*JSONWebEncryption) GetHeader ¶
func (x *JSONWebEncryption) GetHeader() []byte
func (*JSONWebEncryption) GetIv ¶
func (x *JSONWebEncryption) GetIv() string
func (*JSONWebEncryption) GetProtected ¶
func (x *JSONWebEncryption) GetProtected() string
func (*JSONWebEncryption) GetRecipients ¶
func (x *JSONWebEncryption) GetRecipients() []byte
func (*JSONWebEncryption) GetTag ¶
func (x *JSONWebEncryption) GetTag() string
func (*JSONWebEncryption) GetUnprotected ¶
func (x *JSONWebEncryption) GetUnprotected() []byte
func (*JSONWebEncryption) ProtoMessage ¶
func (*JSONWebEncryption) ProtoMessage()
func (*JSONWebEncryption) ProtoReflect ¶
func (x *JSONWebEncryption) ProtoReflect() protoreflect.Message
func (*JSONWebEncryption) Reset ¶
func (x *JSONWebEncryption) Reset()
func (*JSONWebEncryption) String ¶
func (x *JSONWebEncryption) String() string
type JSONWebKey ¶
type JSONWebKey struct { // Cryptographic key, can be a symmetric or asymmetric key. Key *anypb.Any `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Key identifier, parsed from `kid` header. Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"` //keyID // Key algorithm, parsed from `alg` header. Alg string `protobuf:"bytes,3,opt,name=alg,proto3" json:"alg,omitempty"` // Key use, parsed from `use` header. Use string `protobuf:"bytes,4,opt,name=use,proto3" json:"use,omitempty"` Kty string `protobuf:"bytes,5,opt,name=kty,proto3" json:"kty,omitempty"` Crv string `protobuf:"bytes,6,opt,name=crv,proto3" json:"crv,omitempty"` X string `protobuf:"bytes,7,opt,name=x,proto3" json:"x,omitempty"` Y string `protobuf:"bytes,8,opt,name=y,proto3" json:"y,omitempty"` D string `protobuf:"bytes,9,opt,name=d,proto3" json:"d,omitempty"` // X.509 certificate chain, parsed from `x5c` header. Certificate []*anypb.Any `protobuf:"bytes,10,rep,name=certificate,proto3" json:"certificate,omitempty"` // X.509 certificate URL, parsed from `x5u` header. CertificatesUrl string `protobuf:"bytes,11,opt,name=CertificatesUrl,proto3" json:"CertificatesUrl,omitempty"` // X.509 certificate thumbprint (SHA-1), parsed from `x5t` header. CertificateThumbprintSHA1 []byte `protobuf:"bytes,12,opt,name=certificateThumbprintSHA1,proto3" json:"certificateThumbprintSHA1,omitempty"` // X.509 certificate thumbprint (SHA-256), parsed from `x5t#S256` header. CertificateThumbprintSHA256 []byte `protobuf:"bytes,13,opt,name=certificateThumbprintSHA256,proto3" json:"certificateThumbprintSHA256,omitempty"` // contains filtered or unexported fields }
swagger:model
func (*JSONWebKey) Descriptor
deprecated
func (*JSONWebKey) Descriptor() ([]byte, []int)
Deprecated: Use JSONWebKey.ProtoReflect.Descriptor instead.
func (*JSONWebKey) GetAlg ¶
func (x *JSONWebKey) GetAlg() string
func (*JSONWebKey) GetCertificate ¶
func (x *JSONWebKey) GetCertificate() []*anypb.Any
func (*JSONWebKey) GetCertificateThumbprintSHA1 ¶
func (x *JSONWebKey) GetCertificateThumbprintSHA1() []byte
func (*JSONWebKey) GetCertificateThumbprintSHA256 ¶
func (x *JSONWebKey) GetCertificateThumbprintSHA256() []byte
func (*JSONWebKey) GetCertificatesUrl ¶
func (x *JSONWebKey) GetCertificatesUrl() string
func (*JSONWebKey) GetCrv ¶
func (x *JSONWebKey) GetCrv() string
func (*JSONWebKey) GetD ¶
func (x *JSONWebKey) GetD() string
func (*JSONWebKey) GetKey ¶
func (x *JSONWebKey) GetKey() *anypb.Any
func (*JSONWebKey) GetKid ¶
func (x *JSONWebKey) GetKid() string
func (*JSONWebKey) GetKty ¶
func (x *JSONWebKey) GetKty() string
func (*JSONWebKey) GetUse ¶
func (x *JSONWebKey) GetUse() string
func (*JSONWebKey) GetX ¶
func (x *JSONWebKey) GetX() string
func (*JSONWebKey) GetY ¶
func (x *JSONWebKey) GetY() string
func (*JSONWebKey) ProtoMessage ¶
func (*JSONWebKey) ProtoMessage()
func (*JSONWebKey) ProtoReflect ¶
func (x *JSONWebKey) ProtoReflect() protoreflect.Message
func (*JSONWebKey) Reset ¶
func (x *JSONWebKey) Reset()
func (*JSONWebKey) String ¶
func (x *JSONWebKey) String() string
type JwtType ¶
type JwtType struct { Alg []string `protobuf:"bytes,1,rep,name=alg,proto3" json:"alg,omitempty"` // contains filtered or unexported fields }
JwtType contains alg.
func (*JwtType) Descriptor
deprecated
func (*JwtType) ProtoMessage ¶
func (*JwtType) ProtoMessage()
func (*JwtType) ProtoReflect ¶
func (x *JwtType) ProtoReflect() protoreflect.Message
type LdpType ¶
type LdpType struct { ProofType []string `protobuf:"bytes,1,rep,name=proof_type,json=proofType,proto3" json:"proof_type,omitempty"` // contains filtered or unexported fields }
LdpType contains proof_type.
func (*LdpType) Descriptor
deprecated
func (*LdpType) GetProofType ¶
func (*LdpType) ProtoMessage ¶
func (*LdpType) ProtoMessage()
func (*LdpType) ProtoReflect ¶
func (x *LdpType) ProtoReflect() protoreflect.Message
type Recipient ¶
type Recipient struct { Header *RecipientHeaders `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` EncryptedKey string `protobuf:"bytes,2,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"` // contains filtered or unexported fields }
Recipient is a recipient of a JWE including the shared encryption key. swagger:model
func (*Recipient) Descriptor
deprecated
func (*Recipient) GetEncryptedKey ¶
func (*Recipient) GetHeader ¶
func (x *Recipient) GetHeader() *RecipientHeaders
func (*Recipient) ProtoMessage ¶
func (*Recipient) ProtoMessage()
func (*Recipient) ProtoReflect ¶
func (x *Recipient) ProtoReflect() protoreflect.Message
type RecipientHeaders ¶
type RecipientHeaders struct { Alg string `protobuf:"bytes,1,opt,name=alg,proto3" json:"alg,omitempty"` Apu string `protobuf:"bytes,2,opt,name=apu,proto3" json:"apu,omitempty"` Apv string `protobuf:"bytes,3,opt,name=apv,proto3" json:"apv,omitempty"` Iv string `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` Kid string `protobuf:"bytes,6,opt,name=kid,proto3" json:"kid,omitempty"` Epk []byte `protobuf:"bytes,7,opt,name=epk,proto3" json:"epk,omitempty"` // json.RawMessage // contains filtered or unexported fields }
RecipientHeaders are the recipient headers.
func (*RecipientHeaders) Descriptor
deprecated
func (*RecipientHeaders) Descriptor() ([]byte, []int)
Deprecated: Use RecipientHeaders.ProtoReflect.Descriptor instead.
func (*RecipientHeaders) GetAlg ¶
func (x *RecipientHeaders) GetAlg() string
func (*RecipientHeaders) GetApu ¶
func (x *RecipientHeaders) GetApu() string
func (*RecipientHeaders) GetApv ¶
func (x *RecipientHeaders) GetApv() string
func (*RecipientHeaders) GetEpk ¶
func (x *RecipientHeaders) GetEpk() []byte
func (*RecipientHeaders) GetIv ¶
func (x *RecipientHeaders) GetIv() string
func (*RecipientHeaders) GetKid ¶
func (x *RecipientHeaders) GetKid() string
func (*RecipientHeaders) GetTag ¶
func (x *RecipientHeaders) GetTag() string
func (*RecipientHeaders) ProtoMessage ¶
func (*RecipientHeaders) ProtoMessage()
func (*RecipientHeaders) ProtoReflect ¶
func (x *RecipientHeaders) ProtoReflect() protoreflect.Message
func (*RecipientHeaders) Reset ¶
func (x *RecipientHeaders) Reset()
func (*RecipientHeaders) String ¶
func (x *RecipientHeaders) String() string