Documentation ¶
Index ¶
- Constants
- type Attribute
- type ClaimsObject
- type Entitlement
- type Error
- type Policy
- type PolicyBody
- type Provider
- func (p *Provider) LegacyPublicKey(ctx context.Context, in *kaspb.LegacyPublicKeyRequest) (*wrapperspb.StringValue, error)
- func (p *Provider) PublicKey(ctx context.Context, in *kaspb.PublicKeyRequest) (*kaspb.PublicKeyResponse, error)
- func (p *Provider) Rewrap(ctx context.Context, in *kaspb.RewrapRequest) (*kaspb.RewrapResponse, error)
- type RequestBody
Constants ¶
View Source
const ( ErrPolicyDissemInvalid = Error("policy dissem invalid") ErrDecisionUnexpected = Error("authorization decision unexpected") ErrDecisionCountUnexpected = Error("authorization decision count unexpected") )
View Source
const ( ErrHSM = Error("hsm unexpected") ErrConfig = Error("invalid port") )
View Source
const ( ErrCertificateEncode = Error("certificate encode error") ErrPublicKeyMarshal = Error("public key marshal error") )
View Source
const ( ErrUser = Error("request error") ErrInternal = Error("internal error") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimsObject ¶
type ClaimsObject struct { PublicKey string `json:"public_key"` ClientPublicSigningKey string `json:"client_public_signing_key"` SchemaVersion string `json:"tdf_spec_version,omitempty"` Entitlements []Entitlement `json:"entitlements"` }
type Entitlement ¶
type Policy ¶
type Policy struct { UUID uuid.UUID `json:"uuid"` Body PolicyBody `json:"body"` }
type PolicyBody ¶
type Provider ¶
type Provider struct { kaspb.AccessServiceServer URI url.URL `json:"uri"` SDK *otdf.SDK AttributeSvc *url.URL CryptoProvider security.CryptoProvider OIDCVerifier *oidc.IDTokenVerifier }
func (*Provider) LegacyPublicKey ¶
func (p *Provider) LegacyPublicKey(ctx context.Context, in *kaspb.LegacyPublicKeyRequest) (*wrapperspb.StringValue, error)
func (*Provider) PublicKey ¶
func (p *Provider) PublicKey(ctx context.Context, in *kaspb.PublicKeyRequest) (*kaspb.PublicKeyResponse, error)
func (*Provider) Rewrap ¶
func (p *Provider) Rewrap(ctx context.Context, in *kaspb.RewrapRequest) (*kaspb.RewrapResponse, error)
type RequestBody ¶
type RequestBody struct { AuthToken string `json:"authToken"` KeyAccess tdf3.KeyAccess `json:"keyAccess"` Policy string `json:"policy,omitempty"` Algorithm string `json:"algorithm,omitempty"` ClientPublicKey string `json:"clientPublicKey"` PublicKey interface{} `json:"-"` SchemaVersion string `json:"schemaVersion,omitempty"` }
Click to show internal directories.
Click to hide internal directories.