Class UndertowAuthenticationContext
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.UndertowAuthenticationContext
-
- All Implemented Interfaces:
AuthenticationContext
- Direct Known Subclasses:
SSLAuthenticationContext
public class UndertowAuthenticationContext extends Object implements AuthenticationContext
-
-
Constructor Summary
Constructors Constructor Description UndertowAuthenticationContext(SecurityMechanism securityMechanism, InetAddress clientAddress, io.undertow.security.api.SecurityContext securityContext)
Creates a newUndertowAuthenticationContext
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authentication
getAuthentication()
Gets the currently authenticated principal.InetAddress
getClientAddress()
Gets the client address.SecurityMechanism
getSecurityMechanism()
Gets the security mechanism used to authenticate the current user.void
setAuthentication(Authentication authentication)
Sets the currently authenticated principal.io.undertow.security.api.SecurityContext
unwrap()
-
-
-
Constructor Detail
-
UndertowAuthenticationContext
public UndertowAuthenticationContext(SecurityMechanism securityMechanism, InetAddress clientAddress, io.undertow.security.api.SecurityContext securityContext)
Creates a newUndertowAuthenticationContext
instance.- Parameters:
clientAddress
- theInetAddress
of the client.securityContext
- the undertowSecurityContext
instance.
-
-
Method Detail
-
getSecurityMechanism
public SecurityMechanism getSecurityMechanism()
Gets the security mechanism used to authenticate the current user.- Specified by:
getSecurityMechanism
in interfaceAuthenticationContext
- Returns:
- the
SecurityMechanism
.
-
getClientAddress
public InetAddress getClientAddress()
Gets the client address.- Specified by:
getClientAddress
in interfaceAuthenticationContext
- Returns:
- the
InetAddress
instance.
-
getAuthentication
public Authentication getAuthentication()
Gets the currently authenticated principal.- Specified by:
getAuthentication
in interfaceAuthenticationContext
- Returns:
- the
Authentication
.
-
setAuthentication
public void setAuthentication(Authentication authentication)
Sets the currently authenticated principal.- Specified by:
setAuthentication
in interfaceAuthenticationContext
-
unwrap
public io.undertow.security.api.SecurityContext unwrap()
-
-