Module io.quarkus.security.api
Class BaseAuthenticationRequest
java.lang.Object
io.quarkus.security.identity.request.BaseAuthenticationRequest
- All Implemented Interfaces:
AuthenticationRequest
- Direct Known Subclasses:
AnonymousAuthenticationRequest,CertificateAuthenticationRequest,TokenAuthenticationRequest,TrustedAuthenticationRequest,UsernamePasswordAuthenticationRequest
Base implementation of the
AuthenticationRequest interface for convenience.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(String name) Gets an attribute from the authentication request.voidsetAttribute(String name, Object value) Sets an attribute on the authentication request.
-
Constructor Details
-
BaseAuthenticationRequest
public BaseAuthenticationRequest()
-
-
Method Details
-
getAttribute
Description copied from interface:AuthenticationRequestGets an attribute from the authentication request.These can be arbitrary, and extensions are encouraged to use name spaced attribute names in a similar manner to package names.
The `quarkus.` namespace is reserved
- Specified by:
getAttributein interfaceAuthenticationRequest- Type Parameters:
T- The type of the attribute- Parameters:
name- The attribute name- Returns:
- The attribute value
-
setAttribute
Description copied from interface:AuthenticationRequestSets an attribute on the authentication request.These can be arbitrary, and extensions are encouraged to use name spaced attribute names in a similar manner to package names.
The `quarkus.` namespace is reserved
- Specified by:
setAttributein interfaceAuthenticationRequest- Parameters:
name- The attribute namevalue- The attribute value
-
getAttributes
- Specified by:
getAttributesin interfaceAuthenticationRequest- Returns:
- All the authentication request attributes. Modifications on the returned map will affect the authentication request attributes.
-