Class JAASAuthentication
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.AbstractAuthentication<PasswordCredentials>
-
- io.streamthoughts.azkarra.http.security.auth.UsernamePasswordAuthentication
-
- io.streamthoughts.azkarra.http.security.auth.JAASAuthentication
-
- All Implemented Interfaces:
Authentication
public class JAASAuthentication extends UsernamePasswordAuthentication
-
-
Constructor Summary
Constructors Constructor Description JAASAuthentication(Principal principal, PasswordCredentials credential)
Creates a newUsernamePasswordAuthentication
instance.JAASAuthentication(Principal principal, PasswordCredentials credential, LoginContext loginContext)
Creates a newUsernamePasswordAuthentication
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginContext
getLoginContext()
Gets theLoginModule
used to authenticate the user.void
setLoginContext(LoginContext loginContext)
-
Methods inherited from class io.streamthoughts.azkarra.http.security.auth.UsernamePasswordAuthentication
getUserDetails, setUserDetails
-
Methods inherited from class io.streamthoughts.azkarra.http.security.auth.AbstractAuthentication
getCredentials, getPrincipal, isAuthenticated, setAuthenticated
-
-
-
-
Constructor Detail
-
JAASAuthentication
public JAASAuthentication(Principal principal, PasswordCredentials credential)
Creates a newUsernamePasswordAuthentication
instance.- Parameters:
principal
- thePrincipal
of the user to authenticate.credential
- thePasswordCredential
of the user to authenticate.
-
JAASAuthentication
public JAASAuthentication(Principal principal, PasswordCredentials credential, LoginContext loginContext)
Creates a newUsernamePasswordAuthentication
instance.- Parameters:
principal
- thePrincipal
of the user to authenticate.credential
- thePasswordCredential
of the user to authenticate.loginContext
- theLoginContext
used to authenticate the user.
-
-
Method Detail
-
setLoginContext
public void setLoginContext(LoginContext loginContext)
-
getLoginContext
public LoginContext getLoginContext()
Gets theLoginModule
used to authenticate the user.- Returns:
- the
LoginModule
.
-
-