jwt_hmac_go_proto

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JwtHmacAlgorithm_name = map[int32]string{
		0: "HS_UNKNOWN",
		1: "HS256",
		2: "HS384",
		3: "HS512",
	}
	JwtHmacAlgorithm_value = map[string]int32{
		"HS_UNKNOWN": 0,
		"HS256":      1,
		"HS384":      2,
		"HS512":      3,
	}
)

Enum value maps for JwtHmacAlgorithm.

View Source
var File_third_party_tink_proto_jwt_hmac_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type JwtHmacAlgorithm

type JwtHmacAlgorithm int32
const (
	JwtHmacAlgorithm_HS_UNKNOWN JwtHmacAlgorithm = 0
	JwtHmacAlgorithm_HS256      JwtHmacAlgorithm = 1
	JwtHmacAlgorithm_HS384      JwtHmacAlgorithm = 2
	JwtHmacAlgorithm_HS512      JwtHmacAlgorithm = 3
)

func (JwtHmacAlgorithm) Descriptor

func (JwtHmacAlgorithm) Enum

func (JwtHmacAlgorithm) EnumDescriptor deprecated

func (JwtHmacAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use JwtHmacAlgorithm.Descriptor instead.

func (JwtHmacAlgorithm) Number

func (JwtHmacAlgorithm) String

func (x JwtHmacAlgorithm) String() string

func (JwtHmacAlgorithm) Type

type JwtHmacKey

type JwtHmacKey struct {
	Version   uint32                `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Algorithm JwtHmacAlgorithm      `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.crypto.tink.JwtHmacAlgorithm" json:"algorithm,omitempty"`
	KeyValue  []byte                `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	CustomKid *JwtHmacKey_CustomKid `protobuf:"bytes,4,opt,name=custom_kid,json=customKid,proto3" json:"custom_kid,omitempty"`
	// contains filtered or unexported fields
}

key_type: type.googleapis.com/google.crypto.tink.JwtHmacKey

func (*JwtHmacKey) Descriptor deprecated

func (*JwtHmacKey) Descriptor() ([]byte, []int)

Deprecated: Use JwtHmacKey.ProtoReflect.Descriptor instead.

func (*JwtHmacKey) GetAlgorithm

func (x *JwtHmacKey) GetAlgorithm() JwtHmacAlgorithm

func (*JwtHmacKey) GetCustomKid

func (x *JwtHmacKey) GetCustomKid() *JwtHmacKey_CustomKid

func (*JwtHmacKey) GetKeyValue

func (x *JwtHmacKey) GetKeyValue() []byte

func (*JwtHmacKey) GetVersion

func (x *JwtHmacKey) GetVersion() uint32

func (*JwtHmacKey) ProtoMessage

func (*JwtHmacKey) ProtoMessage()

func (*JwtHmacKey) ProtoReflect

func (x *JwtHmacKey) ProtoReflect() protoreflect.Message

func (*JwtHmacKey) Reset

func (x *JwtHmacKey) Reset()

func (*JwtHmacKey) String

func (x *JwtHmacKey) String() string

type JwtHmacKeyFormat

type JwtHmacKeyFormat struct {
	Version   uint32           `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Algorithm JwtHmacAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.crypto.tink.JwtHmacAlgorithm" json:"algorithm,omitempty"`
	KeySize   uint32           `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"`
	// contains filtered or unexported fields
}

func (*JwtHmacKeyFormat) Descriptor deprecated

func (*JwtHmacKeyFormat) Descriptor() ([]byte, []int)

Deprecated: Use JwtHmacKeyFormat.ProtoReflect.Descriptor instead.

func (*JwtHmacKeyFormat) GetAlgorithm

func (x *JwtHmacKeyFormat) GetAlgorithm() JwtHmacAlgorithm

func (*JwtHmacKeyFormat) GetKeySize

func (x *JwtHmacKeyFormat) GetKeySize() uint32

func (*JwtHmacKeyFormat) GetVersion

func (x *JwtHmacKeyFormat) GetVersion() uint32

func (*JwtHmacKeyFormat) ProtoMessage

func (*JwtHmacKeyFormat) ProtoMessage()

func (*JwtHmacKeyFormat) ProtoReflect

func (x *JwtHmacKeyFormat) ProtoReflect() protoreflect.Message

func (*JwtHmacKeyFormat) Reset

func (x *JwtHmacKeyFormat) Reset()

func (*JwtHmacKeyFormat) String

func (x *JwtHmacKeyFormat) String() string

type JwtHmacKey_CustomKid

type JwtHmacKey_CustomKid struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Optional, custom kid header value to be used with "RAW" keys. "TINK" keys with this value set will be rejected.

func (*JwtHmacKey_CustomKid) Descriptor deprecated

func (*JwtHmacKey_CustomKid) Descriptor() ([]byte, []int)

Deprecated: Use JwtHmacKey_CustomKid.ProtoReflect.Descriptor instead.

func (*JwtHmacKey_CustomKid) GetValue

func (x *JwtHmacKey_CustomKid) GetValue() string

func (*JwtHmacKey_CustomKid) ProtoMessage

func (*JwtHmacKey_CustomKid) ProtoMessage()

func (*JwtHmacKey_CustomKid) ProtoReflect

func (x *JwtHmacKey_CustomKid) ProtoReflect() protoreflect.Message

func (*JwtHmacKey_CustomKid) Reset

func (x *JwtHmacKey_CustomKid) Reset()

func (*JwtHmacKey_CustomKid) String

func (x *JwtHmacKey_CustomKid) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL