org.keycloak.protocol.oidc.endpoints

## Class TokenEndpoint

- java.lang.Object
- - org.keycloak.protocol.oidc.endpoints.TokenEndpoint

-     public class TokenEndpoint
      extends Object

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TokenEndpoint(TokenManager tokenManager, RealmModel realm, EventBuilder event)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | `clientCredentialsGrant()`
    `javax.ws.rs.core.Response` | `codeToToken()`
    `protected javax.ws.rs.core.Response` | `exchangeClientToClient(UserModel targetUser, UserSessionModel targetUserSession)`
    `protected javax.ws.rs.core.Response` | `exchangeClientToOIDCClient(UserModel targetUser, UserSessionModel targetUserSession, String requestedTokenType, ClientModel targetClient, String audience, String scope)`
    `protected javax.ws.rs.core.Response` | `exchangeClientToSAML2Client(UserModel targetUser, UserSessionModel targetUserSession, String requestedTokenType, ClientModel targetClient, String audience, String scope)`
    `javax.ws.rs.core.Response` | `exchangeExternalToken(String issuer, String subjectToken)`
    `javax.ws.rs.core.Response` | `exchangeToIdentityProvider(UserModel targetUser, UserSessionModel targetUserSession, String requestedIssuer)`
    `protected UserModel` | `importUserFromExternalIdentity(BrokeredIdentityContext context)`
    `Object` | `introspect()`
    `javax.ws.rs.core.Response` | `permissionGrant()`
    `javax.ws.rs.core.Response` | `preflight()`
    `javax.ws.rs.core.Response` | `processGrantRequest()`
    `javax.ws.rs.core.Response` | `refreshTokenGrant()`
    `javax.ws.rs.core.Response` | `resourceOwnerPasswordCredentialsGrant()`
    `javax.ws.rs.core.Response` | `tokenExchange()`

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

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

- - ### Constructor Detail

    - #### TokenEndpoint

          public TokenEndpoint(TokenManager tokenManager,
                               RealmModel realm,
                               EventBuilder event)

  - ### Method Detail

    - #### processGrantRequest

          @Consumes(value="application/x-www-form-urlencoded")
           @POST
          public javax.ws.rs.core.Response processGrantRequest()

    - #### introspect

          @Path(value="introspect")
          public Object introspect()

    - #### preflight

          @OPTIONS
          public javax.ws.rs.core.Response preflight()

    - #### codeToToken

          public javax.ws.rs.core.Response codeToToken()

    - #### refreshTokenGrant

          public javax.ws.rs.core.Response refreshTokenGrant()

    - #### resourceOwnerPasswordCredentialsGrant

          public javax.ws.rs.core.Response resourceOwnerPasswordCredentialsGrant()

    - #### clientCredentialsGrant

          public javax.ws.rs.core.Response clientCredentialsGrant()

    - #### tokenExchange

          public javax.ws.rs.core.Response tokenExchange()

    - #### exchangeToIdentityProvider

          public javax.ws.rs.core.Response exchangeToIdentityProvider(UserModel targetUser,
                                                                      UserSessionModel targetUserSession,
                                                                      String requestedIssuer)

    - #### exchangeClientToClient

          protected javax.ws.rs.core.Response exchangeClientToClient(UserModel targetUser,
                                                                     UserSessionModel targetUserSession)

    - #### exchangeClientToOIDCClient

          protected javax.ws.rs.core.Response exchangeClientToOIDCClient(UserModel targetUser,
                                                                         UserSessionModel targetUserSession,
                                                                         String requestedTokenType,
                                                                         ClientModel targetClient,
                                                                         String audience,
                                                                         String scope)

    - #### exchangeClientToSAML2Client

          protected javax.ws.rs.core.Response exchangeClientToSAML2Client(UserModel targetUser,
                                                                          UserSessionModel targetUserSession,
                                                                          String requestedTokenType,
                                                                          ClientModel targetClient,
                                                                          String audience,
                                                                          String scope)

    - #### exchangeExternalToken

          public javax.ws.rs.core.Response exchangeExternalToken(String issuer,
                                                                 String subjectToken)

    - #### importUserFromExternalIdentity

          protected UserModel importUserFromExternalIdentity(BrokeredIdentityContext context)

    - #### permissionGrant

          public javax.ws.rs.core.Response permissionGrant()

Copyright © 2021 JBoss by Red Hat. All rights reserved.