Class AdminAuth
- java.lang.Object
-
- org.keycloak.services.resources.admin.AdminAuth
-
public class AdminAuth extends Object
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdminAuth.Resource
-
Constructor Summary
Constructors Constructor Description AdminAuth(RealmModel realm, AccessToken token, UserModel user, ClientModel client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientModel
getClient()
RealmModel
getRealm()
AccessToken
getToken()
UserModel
getUser()
boolean
hasAppRole(ClientModel app, String role)
boolean
hasOneOfAppRole(ClientModel app, String... roles)
boolean
hasOneOfRealmRole(String... roles)
boolean
hasRealmRole(String role)
-
-
-
Constructor Detail
-
AdminAuth
public AdminAuth(RealmModel realm, AccessToken token, UserModel user, ClientModel client)
-
-
Method Detail
-
getRealm
public RealmModel getRealm()
-
getUser
public UserModel getUser()
-
getClient
public ClientModel getClient()
-
getToken
public AccessToken getToken()
-
hasRealmRole
public boolean hasRealmRole(String role)
-
hasOneOfRealmRole
public boolean hasOneOfRealmRole(String... roles)
-
hasAppRole
public boolean hasAppRole(ClientModel app, String role)
-
hasOneOfAppRole
public boolean hasOneOfAppRole(ClientModel app, String... roles)
-
-