auth

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Property deprecated added in v1.19.0

type Property = user.Property

Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them

type PublicKey deprecated added in v1.19.0

type PublicKey = user.PublicKey

Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them

type Resp

type Resp struct {
	Name       string
	ID         uuid.UUID
	Properties []user.Property
}

Resp is the response of authentication

func Encrypt

func Encrypt(conn *net.Conn, name string, serverKey *rsa.PrivateKey) (*Resp, error)

Encrypt a connection, with authentication

func (*Resp) Texture

func (r *Resp) Texture() (t user.Texture, err error)

Texture unmarshal the base64 encoded texture of Resp

type Texture deprecated

type Texture = user.Texture

Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them

Jump to

Keyboard shortcuts

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