Documentation
¶
Overview ¶
package servcers implements EAP-AKA GRPC service
package servcers implements EAP-AKA GRPC service
package servicers implements EAP-AKA GRPC service
Index ¶
- func AddHandler(st aka.Subtype, h Handler)
- type EapAkaSrv
- func (s *EapAkaSrv) ChallengeTimeout() time.Duration
- func (s *EapAkaSrv) CheckPlmnId(imsi aka.IMSI) bool
- func (s *EapAkaSrv) FindAndRemoveSession(sessionId string) (aka.IMSI, bool)
- func (s *EapAkaSrv) FindSession(sessionId string) (aka.IMSI, *UserCtx, bool)
- func (s *EapAkaSrv) Handle(_ context.Context, req *protos.Eap) (*protos.Eap, error)
- func (s *EapAkaSrv) HandleImpl(req *protos.Eap) (*protos.Eap, error)
- func (s *EapAkaSrv) InitSession(sessionId string, imsi aka.IMSI) (lockedUserContext *UserCtx)
- func (s *EapAkaSrv) NotificationTimeout() time.Duration
- func (s *EapAkaSrv) RemoveSession(sessionId string) aka.IMSI
- func (s *EapAkaSrv) ResetSessionTimeout(sessionId string, newTimeout time.Duration)
- func (s *EapAkaSrv) SessionAuthenticatedTimeout() time.Duration
- func (s *EapAkaSrv) SessionTimeout() time.Duration
- func (s *EapAkaSrv) SetChallengeTimeout(tout time.Duration)
- func (s *EapAkaSrv) SetNotificationTimeout(tout time.Duration)
- func (s *EapAkaSrv) SetSessionAuthenticatedTimeout(tout time.Duration)
- func (s *EapAkaSrv) SetSessionTimeout(tout time.Duration)
- func (s *EapAkaSrv) UpdateSessionTimeout(sessionId string, timeout time.Duration) bool
- func (s *EapAkaSrv) UpdateSessionUnlockCtx(lockedCtx *UserCtx, timeout time.Duration)
- type Handler
- type SessionCtx
- type UserCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶
Types ¶
type EapAkaSrv ¶
type EapAkaSrv struct {
// contains filtered or unexported fields
}
func NewEapAkaService ¶
func NewEapAkaService(config *mconfig.EapAkaConfig) (*EapAkaSrv, error)
NewEapAkaService creates new Aka Service 'object'
func (*EapAkaSrv) ChallengeTimeout ¶
func (*EapAkaSrv) CheckPlmnId ¶
CheckPlmnId returns true either if there is no PLMN ID filters (allowlist) configured or one the configured PLMN IDs matches passed IMSI
func (*EapAkaSrv) FindAndRemoveSession ¶
FindAndRemoveSession finds returns IMSI of a session and a flag indication if the find succeeded then it deletes the session ID from the map
func (*EapAkaSrv) FindSession ¶
FindSession finds and returns IMSI of a session and a flag indication if the find succeeded If found, FindSession tries to stop outstanding session timer
func (*EapAkaSrv) HandleImpl ¶
Handle implements AKA handler API
func (*EapAkaSrv) InitSession ¶
InitSession either creates new or updates existing session & user ctx, it session ID into the CTX and initializes session map as well as users map Returns Locked User Ctx
func (*EapAkaSrv) NotificationTimeout ¶
func (*EapAkaSrv) RemoveSession ¶
RemoveSession removes session ID from the session map and attempts to cancel corresponding timer It also removes associated with the session user CTX if any returns associated with the session IMSI or an empty string
func (*EapAkaSrv) ResetSessionTimeout ¶
ResetSessionTimeout finds a session with specified ID, if found - attempts to cancel its current timeout (best effort) & schedules the new one. ResetSessionTimeout does not guarantee that the old timeout cleanup won't be executed
func (*EapAkaSrv) SessionAuthenticatedTimeout ¶
func (*EapAkaSrv) SessionTimeout ¶
func (*EapAkaSrv) SetChallengeTimeout ¶
func (*EapAkaSrv) SetNotificationTimeout ¶
func (*EapAkaSrv) SetSessionAuthenticatedTimeout ¶
func (*EapAkaSrv) SetSessionTimeout ¶
func (*EapAkaSrv) UpdateSessionTimeout ¶
UpdateSessionTimeout finds a session with specified ID, if found - cancels its current timeout & schedules the new one. Returns true if the session was found
type SessionCtx ¶
type UserCtx ¶
type UserCtx struct { Identity string Imsi aka.IMSI Profile *protos.AuthenticationAnswer_UserProfile Identifier uint8 Rand, K_aut, MSK, Xres []byte SessionId string AuthSessionId string // contains filtered or unexported fields }
func (*UserCtx) CreatedTime ¶
CreatedTime returns time of CTX creation
Directories
¶
Path | Synopsis |
---|---|
Package handlers provided AKA Response handlers for supported AKA subtypes Package handlers provided AKA Response handlers for supported AKA subtypes Package handlers provided AKA Response handlers for supported AKA subtypes Package handlers provided AKA Response handlers for supported AKA subtypes
|
Package handlers provided AKA Response handlers for supported AKA subtypes Package handlers provided AKA Response handlers for supported AKA subtypes Package handlers provided AKA Response handlers for supported AKA subtypes Package handlers provided AKA Response handlers for supported AKA subtypes |