Class JaxrsOAuthClient


  • @Deprecated
    public class JaxrsOAuthClient
    extends AbstractOAuthClient
    Deprecated.
    Class is deprecated and may be removed in the future. If you want to maintain this class for Keycloak community, please contact Keycloak team on keycloak-dev mailing list. You can fork it into your github repository and Keycloak team will reference it from "Keycloak Extensions" page.
    Helper code to obtain oauth access tokens via browser redirects
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Field Detail

      • client

        protected javax.ws.rs.client.Client client
        Deprecated.
    • Constructor Detail

      • JaxrsOAuthClient

        public JaxrsOAuthClient()
        Deprecated.
    • Method Detail

      • stop

        public void stop()
        Deprecated.
        closes client
      • getClient

        public javax.ws.rs.client.Client getClient()
        Deprecated.
      • setClient

        public void setClient​(javax.ws.rs.client.Client client)
        Deprecated.
      • resolveBearerToken

        public String resolveBearerToken​(String redirectUri,
                                         String code)
        Deprecated.
      • redirect

        public javax.ws.rs.core.Response redirect​(javax.ws.rs.core.UriInfo uriInfo,
                                                  String redirectUri)
        Deprecated.
      • getStateCookiePath

        public String getStateCookiePath​(javax.ws.rs.core.UriInfo uriInfo)
        Deprecated.
      • getBearerToken

        public String getBearerToken​(javax.ws.rs.core.UriInfo uriInfo,
                                     javax.ws.rs.core.HttpHeaders headers)
                              throws javax.ws.rs.BadRequestException,
                                     javax.ws.rs.InternalServerErrorException
        Deprecated.
        Throws:
        javax.ws.rs.BadRequestException
        javax.ws.rs.InternalServerErrorException
      • getError

        public String getError​(javax.ws.rs.core.UriInfo uriInfo)
        Deprecated.
      • getAccessCode

        public String getAccessCode​(javax.ws.rs.core.UriInfo uriInfo)
        Deprecated.
      • checkStateCookie

        public void checkStateCookie​(javax.ws.rs.core.UriInfo uriInfo,
                                     javax.ws.rs.core.HttpHeaders headers)
        Deprecated.