Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2020 Changes in this version + const AuthenticationMethodHmac + const AuthenticationMethodNone + const AuthenticationMethodPublicKey + const AuthenticationMethodToken + type AuthenticationMethod string + type Authenticator interface + AuthenticateRevocation func(headers http.Header, body []byte) (applies bool, request *irma.RevocationRequest, requestor string, ...) + AuthenticateSession func(headers http.Header, body []byte) (applies bool, request irma.RequestorRequest, requestor string, ...) + Initialize func(name string, requestor Requestor) error + type Configuration struct + ClientListenAddress string + ClientPort int + ClientTlsCertificate string + ClientTlsCertificateFile string + ClientTlsPrivateKey string + ClientTlsPrivateKeyFile string + DisableRequestorAuthentication bool + ListenAddress string + MaxRequestAge int + Port int + Requestors map[string]Requestor + SkipPrivateKeysCheck bool + StaticPath string + StaticPrefix string + TlsCertificate string + TlsCertificateFile string + TlsPrivateKey string + TlsPrivateKeyFile string + func (conf *Configuration) CanIssue(requestor string, creds []*irma.CredentialRequest) (bool, string) + func (conf *Configuration) CanRevoke(requestor string, cred irma.CredentialTypeIdentifier) (bool, string) + func (conf *Configuration) CanVerifyOrSign(requestor string, action irma.Action, disjunctions irma.AttributeConDisCon) (bool, string) + type HmacAuthenticator struct + func (hauth *HmacAuthenticator) AuthenticateRevocation(headers http.Header, body []byte) (bool, *irma.RevocationRequest, string, *irma.RemoteError) + func (hauth *HmacAuthenticator) AuthenticateSession(headers http.Header, body []byte) (applies bool, request irma.RequestorRequest, requestor string, ...) + func (hauth *HmacAuthenticator) Initialize(name string, requestor Requestor) error + type NilAuthenticator struct + func (NilAuthenticator) AuthenticateRevocation(headers http.Header, body []byte) (bool, *irma.RevocationRequest, string, *irma.RemoteError) + func (NilAuthenticator) AuthenticateSession(headers http.Header, body []byte) (bool, irma.RequestorRequest, string, *irma.RemoteError) + func (NilAuthenticator) Initialize(name string, requestor Requestor) error + type Permissions struct + Disclosing []string + Issuing []string + Revoking []string + Signing []string + type PresharedKeyAuthenticator struct + func (pskauth *PresharedKeyAuthenticator) AuthenticateRevocation(headers http.Header, body []byte) (bool, *irma.RevocationRequest, string, *irma.RemoteError) + func (pskauth *PresharedKeyAuthenticator) AuthenticateSession(headers http.Header, body []byte) (bool, irma.RequestorRequest, string, *irma.RemoteError) + func (pskauth *PresharedKeyAuthenticator) Initialize(name string, requestor Requestor) error + type PublicKeyAuthenticator struct + func (pkauth *PublicKeyAuthenticator) AuthenticateRevocation(headers http.Header, body []byte) (bool, *irma.RevocationRequest, string, *irma.RemoteError) + func (pkauth *PublicKeyAuthenticator) AuthenticateSession(headers http.Header, body []byte) (bool, irma.RequestorRequest, string, *irma.RemoteError) + func (pkauth *PublicKeyAuthenticator) Initialize(name string, requestor Requestor) error + type Requestor struct + AuthenticationKey string + AuthenticationKeyFile string + AuthenticationMethod AuthenticationMethod + type Server struct + func New(config *Configuration) (*Server, error) + func (s *Server) ClientHandler() http.Handler + func (s *Server) Handler() http.Handler + func (s *Server) Start(config *Configuration) error + func (s *Server) StaticFilesHandler() http.Handler + func (s *Server) Stop()