Interface Authentication
-
- All Known Implementing Classes:
AbstractAuthentication
,JAASAuthentication
,SSLClientAuthentication
,UsernamePasswordAuthentication
public interface Authentication
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Credentials
getCredentials()
TheCredentials
of the user to authenticate.Principal
getPrincipal()
ThePrincipal
of the user to authenticate.default UserDetails
getUserDetails()
Gets details about the authenticated user.boolean
isAuthenticated()
Checks whether the user has been authenticated successfully.void
setAuthenticated(boolean isAuthenticated)
-
-
-
Method Detail
-
getCredentials
Credentials getCredentials()
TheCredentials
of the user to authenticate.- Returns:
- the
Credentials
.
-
getPrincipal
Principal getPrincipal()
ThePrincipal
of the user to authenticate.- Returns:
- the
Principal
.
-
getUserDetails
default UserDetails getUserDetails()
Gets details about the authenticated user.- Returns:
- the
UserDetails
if user is authenticated,null
otherwise.
-
isAuthenticated
boolean isAuthenticated()
Checks whether the user has been authenticated successfully.- Returns:
true
if the user if authenticated,false
otherwise.
-
setAuthenticated
void setAuthenticated(boolean isAuthenticated)
-
-