Package org.keycloak.services.managers
Class Auth
java.lang.Object
org.keycloak.services.managers.Auth
- Author:
- Stian Thorgersen
-
Constructor Summary
ConstructorDescriptionAuth
(RealmModel realm, AccessToken token, UserModel user, ClientModel client, UserSessionModel session, boolean cookie) -
Method Summary
Modifier and TypeMethodDescriptiongetRealm()
getToken()
getUser()
boolean
hasClientRole
(ClientModel app, String role) boolean
hasOneOfAppRole
(ClientModel app, String... roles) boolean
hasOneOfRealmRole
(String... roles) boolean
hasRealmRole
(String role) boolean
void
void
requireOneOf
(String... roles) void
setClientSession
(AuthenticatedClientSessionModel clientSession)
-
Constructor Details
-
Auth
public Auth(RealmModel realm, AccessToken token, UserModel user, ClientModel client, UserSessionModel session, boolean cookie)
-
-
Method Details
-
isCookieAuthenticated
public boolean isCookieAuthenticated() -
getRealm
-
getUser
-
getClient
-
getToken
-
getSession
-
getClientSession
-
setClientSession
-
require
-
requireOneOf
-
hasRealmRole
-
hasOneOfRealmRole
-
hasClientRole
-
hasOneOfAppRole
-