auth

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package auth contains the structures describing auth request.

Index

Constants

View Source
const RequestID uint16 = 3000

RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auther

type Auther interface {
	Provider() string                          // Provider returns the name of the security provider.
	Request(params []string) (*Request, error) // Request forms an authorization Request according to passed parameters.
}

Auther is the interface that must be implemented by a security provider.

type Request

type Request struct {
	Type        [4]byte
	Credentials string
	// contains filtered or unexported fields
}

Request holds the auth request parameters.

func (Request) MarshalXrd

func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

MarshalXrd implements xrdproto.Marshaler.

func (*Request) ReqID

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) ShouldSign

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd

func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

UnmarshalXrd implements xrdproto.Unmarshaler.

Directories

Path Synopsis
Package host contains the implementation for the "host" security provider.
Package host contains the implementation for the "host" security provider.
Package krb5 contains the implementation of krb5 (Kerberos) security provider.
Package krb5 contains the implementation of krb5 (Kerberos) security provider.
Package unix contains the implementation of unix security provider.
Package unix contains the implementation of unix security provider.

Jump to

Keyboard shortcuts

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