org.keycloak.services.resources.admin

## Class AdminAuth

- java.lang.Object
- - org.keycloak.services.resources.admin.AdminAuth

-     public class AdminAuth
      extends Object

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdminAuth(RealmModel realm, AccessToken token, UserModel user, ClientModel client)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ClientModel` | `getClient()`
    `RealmModel` | `getRealm()`
    `AccessToken` | `getToken()`
    `UserModel` | `getUser()`
    `boolean` | `hasAppRole(ApplicationModel app, String role)`
    `boolean` | `hasOneOfAppRole(ApplicationModel app, String... roles)`
    `boolean` | `hasOneOfRealmRole(String... roles)`
    `boolean` | `hasRealmRole(String role)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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(ApplicationModel app,
                           String role)

    - #### hasOneOfAppRole

          public boolean hasOneOfAppRole(ApplicationModel app,
                                String... roles)

Copyright © 2014. All Rights Reserved.