Package org.keycloak.protocol.openshift
Class OpenShiftTokenReviewEndpoint
- java.lang.Object
-
- org.keycloak.protocol.openshift.OpenShiftTokenReviewEndpoint
-
- All Implemented Interfaces:
OIDCExtProvider,EnvironmentDependentProviderFactory,Provider
public class OpenShiftTokenReviewEndpoint extends Object implements OIDCExtProvider, EnvironmentDependentProviderFactory
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description OpenShiftTokenReviewEndpoint(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSupported()voidsetEvent(EventBuilder event)javax.ws.rs.core.ResponsetokenReview(String clientId, OpenShiftTokenReviewRequestRepresentation reviewRequest)javax.ws.rs.core.ResponsetokenReview(OpenShiftTokenReviewRequestRepresentation reviewRequest)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupported
-
Methods inherited from interface org.keycloak.protocol.oidc.ext.OIDCExtProvider
close
-
-
-
-
Constructor Detail
-
OpenShiftTokenReviewEndpoint
public OpenShiftTokenReviewEndpoint(KeycloakSession session)
-
-
Method Detail
-
setEvent
public void setEvent(EventBuilder event)
- Specified by:
setEventin interfaceOIDCExtProvider
-
tokenReview
@Path("/") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response tokenReview(OpenShiftTokenReviewRequestRepresentation reviewRequest) throws Exception- Throws:
Exception
-
tokenReview
@Path("/{client_id}") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response tokenReview(@PathParam("client_id") String clientId, OpenShiftTokenReviewRequestRepresentation reviewRequest) throws Exception- Throws:
Exception
-
isSupported
public boolean isSupported()
- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Returns:
trueif the provider is supported and should be available,falseotherwise
-
-