Class AcrStore
- java.lang.Object
- 
- org.keycloak.authentication.authenticators.util.AcrStore
 
- 
 public class AcrStore extends Object CRUD data in the authentication session, which are related to step-up authentication- Author:
- Marek Posolda
 
- 
- 
Constructor SummaryConstructors Constructor Description AcrStore(AuthenticationSessionModel authSession)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetCurrentLevelOfAuthentication(AuthenticatedClientSessionModel clientSession)intgetHighestAuthenticatedLevelFromPreviousAuthentication()intgetLevelOfAuthenticationFromCurrentAuthentication()return level, which was either: - directly authenticated in current authentication - or was already verified that can be re-used from previous authenticationintgetRequestedLevelOfAuthentication()booleanisLevelAuthenticatedInPreviousAuth(int level, int maxAge)booleanisLevelOfAuthenticationForced()booleanisLevelOfAuthenticationSatisfiedFromCurrentAuthentication()voidsetLevelAuthenticated(int level)Save authenticated level to authenticationSession (for current authentication) and loa map (for future authentications)voidsetLevelAuthenticatedToCurrentRequest(int level)Set level to the current authentication session
 
- 
- 
- 
Constructor Detail- 
AcrStorepublic AcrStore(AuthenticationSessionModel authSession) 
 
- 
 - 
Method Detail- 
isLevelOfAuthenticationForcedpublic boolean isLevelOfAuthenticationForced() 
 - 
getRequestedLevelOfAuthenticationpublic int getRequestedLevelOfAuthentication() 
 - 
isLevelOfAuthenticationSatisfiedFromCurrentAuthenticationpublic boolean isLevelOfAuthenticationSatisfiedFromCurrentAuthentication() 
 - 
getCurrentLevelOfAuthenticationpublic static int getCurrentLevelOfAuthentication(AuthenticatedClientSessionModel clientSession) 
 - 
isLevelAuthenticatedInPreviousAuthpublic boolean isLevelAuthenticatedInPreviousAuth(int level, int maxAge)- Parameters:
- level- level of authentication
- maxAge- maxAge for which this level is considered valid
- Returns:
- True if the particular level was already authenticated before in this userSession and is still valid
 
 - 
getLevelOfAuthenticationFromCurrentAuthenticationpublic int getLevelOfAuthenticationFromCurrentAuthentication() return level, which was either: - directly authenticated in current authentication - or was already verified that can be re-used from previous authentication- Returns:
- see above
 
 - 
setLevelAuthenticatedpublic void setLevelAuthenticated(int level) Save authenticated level to authenticationSession (for current authentication) and loa map (for future authentications)- Parameters:
- level- level to save
 
 - 
setLevelAuthenticatedToCurrentRequestpublic void setLevelAuthenticatedToCurrentRequest(int level) Set level to the current authentication session- Parameters:
- level- , which was authenticated by user
 
 - 
getHighestAuthenticatedLevelFromPreviousAuthenticationpublic int getHighestAuthenticatedLevelFromPreviousAuthentication() - Returns:
- highest authenticated level from previous authentication, which is still valid (not yet expired)
 
 
- 
 
-