Documentation
¶
Index ¶
- Variables
- type JSONWebKey
- func (*JSONWebKey) Descriptor() ([]byte, []int)deprecated
- func (x *JSONWebKey) GetAlg() string
- func (x *JSONWebKey) GetE() string
- func (x *JSONWebKey) GetKid() string
- func (x *JSONWebKey) GetKty() string
- func (x *JSONWebKey) GetN() string
- func (x *JSONWebKey) GetUse() string
- func (*JSONWebKey) ProtoMessage()
- func (x *JSONWebKey) ProtoReflect() protoreflect.Message
- func (x *JSONWebKey) Reset()
- func (x *JSONWebKey) String() string
- type JSONWebKeySet
- type PrivateJSONWebKey
- func (*PrivateJSONWebKey) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateJSONWebKey) GetAlg() string
- func (x *PrivateJSONWebKey) GetAudience() string
- func (x *PrivateJSONWebKey) GetHeader() *header.Header
- func (x *PrivateJSONWebKey) GetIsCurrent() bool
- func (x *PrivateJSONWebKey) GetKeyMaterial() string
- func (x *PrivateJSONWebKey) GetSize() int64
- func (*PrivateJSONWebKey) ProtoMessage()
- func (x *PrivateJSONWebKey) ProtoReflect() protoreflect.Message
- func (x *PrivateJSONWebKey) Reset()
- func (x *PrivateJSONWebKey) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_key_jwk_proto protoreflect.FileDescriptor
View Source
var File_proto_key_jwks_proto protoreflect.FileDescriptor
View Source
var File_proto_key_private_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type JSONWebKey ¶
type JSONWebKey struct {
// kty - Defines the type of key this JWK represents
Kty string `protobuf:"bytes,1,opt,name=kty,proto3" json:"kty,omitempty" bson:"kty"` // @gotags: bson:"kty"
// use - Defines the use for this JWK, usually sig
Use string `protobuf:"bytes,2,opt,name=use,proto3" json:"use,omitempty" bson:"use"` // @gotags: bson:"use"
// kid - A unique identifier for the key
Kid string `protobuf:"bytes,3,opt,name=kid,proto3" json:"kid,omitempty" bson:"kid"` // @gotags: bson:"kid"
// alg - Defines the algorithm that this JWK was generated using
Alg string `protobuf:"bytes,4,opt,name=alg,proto3" json:"alg,omitempty" bson:"alg"` // @gotags: bson:"alg"
// n - Public modulos for the key
N string `protobuf:"bytes,5,opt,name=n,proto3" json:"n,omitempty" bson:"n"` // @gotags: bson:"n"
// e - Public exponent for the key
E string `protobuf:"bytes,6,opt,name=e,proto3" json:"e,omitempty" bson:"e"` // @gotags: bson:"e"
// contains filtered or unexported fields
}
JSONWebKey - A simple structure representing a public JSON Web Key
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) GetE ¶
func (x *JSONWebKey) GetE() string
func (*JSONWebKey) GetKid ¶
func (x *JSONWebKey) GetKid() string
func (*JSONWebKey) GetKty ¶
func (x *JSONWebKey) GetKty() string
func (*JSONWebKey) GetN ¶
func (x *JSONWebKey) GetN() string
func (*JSONWebKey) GetUse ¶
func (x *JSONWebKey) GetUse() 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 JSONWebKeySet ¶
type JSONWebKeySet struct {
// keys - All keys offered by the JWKS
Keys []*JSONWebKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty" bson:"keys"` // @gotags: bson:"keys"
// contains filtered or unexported fields
}
JSONWebKeySet - A standard JSON Web Key Set
func (*JSONWebKeySet) Descriptor
deprecated
func (*JSONWebKeySet) Descriptor() ([]byte, []int)
Deprecated: Use JSONWebKeySet.ProtoReflect.Descriptor instead.
func (*JSONWebKeySet) GetKeys ¶
func (x *JSONWebKeySet) GetKeys() []*JSONWebKey
func (*JSONWebKeySet) ProtoMessage ¶
func (*JSONWebKeySet) ProtoMessage()
func (*JSONWebKeySet) ProtoReflect ¶
func (x *JSONWebKeySet) ProtoReflect() protoreflect.Message
func (*JSONWebKeySet) Reset ¶
func (x *JSONWebKeySet) Reset()
func (*JSONWebKeySet) String ¶
func (x *JSONWebKeySet) String() string
type PrivateJSONWebKey ¶
type PrivateJSONWebKey struct {
// header - The generated header for the key pair
Header *header.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty" bson:"header"` // @gotags: bson:"header"
// alg - Specify's the algorithm used for generating the key
Alg string `protobuf:"bytes,2,opt,name=alg,proto3" json:"alg,omitempty" bson:"alg"` // @gotags: bson:"alg"
// key_material - The PEM encoded private key
KeyMaterial string `protobuf:"bytes,3,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty" bson:"key_material"` // @gotags: bson:"key_material"
// size - The size of the key in bits
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty" bson:"size"` // @gotags: bson:"size"
// is_current - If set to true, then this key is selected for signing tokens
IsCurrent bool `protobuf:"varint,5,opt,name=is_current,json=isCurrent,proto3" json:"is_current,omitempty" bson:"is_current"` // @gotags: bson:"is_current"
// audience - The audience of the API that this key was allocated for
Audience string `protobuf:"bytes,6,opt,name=audience,proto3" json:"audience,omitempty" bson:"audience"` // @gotags: bson:"audience"
// contains filtered or unexported fields
}
PrivateJSONWebKey - Represents a encryption key that can be used for signing tokens. This model can be used for both RS tokens and HS tokens
func (*PrivateJSONWebKey) Descriptor
deprecated
func (*PrivateJSONWebKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateJSONWebKey.ProtoReflect.Descriptor instead.
func (*PrivateJSONWebKey) GetAlg ¶
func (x *PrivateJSONWebKey) GetAlg() string
func (*PrivateJSONWebKey) GetAudience ¶
func (x *PrivateJSONWebKey) GetAudience() string
func (*PrivateJSONWebKey) GetHeader ¶
func (x *PrivateJSONWebKey) GetHeader() *header.Header
func (*PrivateJSONWebKey) GetIsCurrent ¶
func (x *PrivateJSONWebKey) GetIsCurrent() bool
func (*PrivateJSONWebKey) GetKeyMaterial ¶
func (x *PrivateJSONWebKey) GetKeyMaterial() string
func (*PrivateJSONWebKey) GetSize ¶
func (x *PrivateJSONWebKey) GetSize() int64
func (*PrivateJSONWebKey) ProtoMessage ¶
func (*PrivateJSONWebKey) ProtoMessage()
func (*PrivateJSONWebKey) ProtoReflect ¶
func (x *PrivateJSONWebKey) ProtoReflect() protoreflect.Message
func (*PrivateJSONWebKey) Reset ¶
func (x *PrivateJSONWebKey) Reset()
func (*PrivateJSONWebKey) String ¶
func (x *PrivateJSONWebKey) String() string
Click to show internal directories.
Click to hide internal directories.