Package org.keycloak.services.managers
Class AppAuthManager
- java.lang.Object
- 
- org.keycloak.services.managers.AuthenticationManager
- 
- org.keycloak.services.managers.AppAuthManager
 
 
- 
 public class AppAuthManager extends AuthenticationManager - Author:
- Bill Burke, Stian Thorgersen
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAppAuthManager.BearerTokenAuthenticator- 
Nested classes/interfaces inherited from class org.keycloak.services.managers.AuthenticationManagerAuthenticationManager.AuthenticationStatus, AuthenticationManager.AuthResult
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.services.managers.AuthenticationManagerAUTH_TIME, AUTH_TIME_BROKER, CLIENT_LOGOUT_STATE, END_AFTER_REQUIRED_ACTIONS, FORCED_REAUTHENTICATION, FORM_USERNAME, INITIATING_IDP_PARAM, INVALIDATE_ACTION_TOKEN, KEYCLOAK_IDENTITY_COOKIE, KEYCLOAK_LOGOUT_PROTOCOL, KEYCLOAK_REMEMBER_ME, KEYCLOAK_SESSION_COOKIE, logger, LOGOUT_INITIATING_IDP, LOGOUT_WITH_SYSTEM_CLIENT, SET_REDIRECT_URI_AFTER_REQUIRED_ACTIONS, SSO_AUTH, USER_SESSION_PERSISTENT_STATE
 
- 
 - 
Constructor SummaryConstructors Constructor Description AppAuthManager()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationManager.AuthResultauthenticateIdentityCookie(KeycloakSession session, RealmModel realm)static StringextractAuthorizationHeaderToken(javax.ws.rs.core.HttpHeaders headers)Extracts the token string from the Authorization Bearer Header.static StringextractAuthorizationHeaderTokenOrReturnNull(javax.ws.rs.core.HttpHeaders headers)Extracts the token string from the Authorization Bearer Header.- 
Methods inherited from class org.keycloak.services.managers.AuthenticationManageractionRequired, authenticateIdentityCookie, backchannelLogout, backchannelLogout, backchannelLogout, backchannelLogoutUserFromClient, browserLogout, createIdentityToken, createLoginCookie, createOrJoinLogoutSession, createRememberMeCookie, createRequiredAction, evaluateRequiredActionTriggers, executionActions, expireCookie, expireIdentityCookie, expireOldAuthSessionCookie, expireOldIdentityCookie, expireRememberMeCookie, expireUserSessionCookie, finishBrowserLogout, finishedRequiredActions, finishUnconfirmedUserSession, getAccountCookiePath, getClientLogoutAction, getIdentityCookiePath, getOldCookiePath, getRealmCookiePath, getRememberMeUsername, getSessionIdFromSessionCookie, isOfflineSessionValid, isSessionValid, isSSOAuthentication, logSuccess, lookupUserForBruteForceLog, nextActionAfterAuthentication, nextRequiredAction, redirectAfterSuccessfulFlow, redirectAfterSuccessfulFlow, redirectToRequiredActions, setClientLogoutAction, setClientScopesInSession, setKcActionStatus, verifyIdentityToken
 
- 
 
- 
- 
- 
Method Detail- 
authenticateIdentityCookiepublic AuthenticationManager.AuthResult authenticateIdentityCookie(KeycloakSession session, RealmModel realm) - Overrides:
- authenticateIdentityCookiein class- AuthenticationManager
 
 - 
extractAuthorizationHeaderTokenOrReturnNullpublic static String extractAuthorizationHeaderTokenOrReturnNull(javax.ws.rs.core.HttpHeaders headers) Extracts the token string from the Authorization Bearer Header.- Parameters:
- headers-
- Returns:
- the token string or null if the Authorization header is not of type Bearer, or the token string is missing.
 
 - 
extractAuthorizationHeaderTokenpublic static String extractAuthorizationHeaderToken(javax.ws.rs.core.HttpHeaders headers) Extracts the token string from the Authorization Bearer Header.- Parameters:
- headers-
- Returns:
- the token string or null of the Authorization header is missing
- Throws:
- javax.ws.rs.NotAuthorizedException- if the Authorization header is not of type Bearer, or the token string is missing.
 
 
- 
 
-