AuthenticatedAuthorizationManager<T> class final

An AuthorizationManager that grants by the kind of login, not by authorities: any real login, a full login, or only anonymous users.

It is behind the web rules authenticated(), fullyAuthenticated() and anonymous().

Spring (Java): AuthenticatedAuthorizationManager.

Implemented types

Constructors

AuthenticatedAuthorizationManager.anonymous({AuthenticationTrustResolver resolver = const AuthenticationTrustResolverImpl()})
Grants only anonymous users, for pages such as a login or sign-up form that logged-in users should not see.
const
AuthenticatedAuthorizationManager.authenticated({AuthenticationTrustResolver resolver = const AuthenticationTrustResolverImpl()})
Grants any real login; denies anonymous users and requests with no authentication.
const
AuthenticatedAuthorizationManager.fullyAuthenticated({AuthenticationTrustResolver resolver = const AuthenticationTrustResolverImpl()})
Grants a real login made in this session (not "remember me"); here the same as AuthenticatedAuthorizationManager.authenticated.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorize(Authentication? authentication(), T object) → AuthorizationResult
Decides whether the current user may access object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited