@Path(value="register") public class DynamicRegistrationService extends Object
Constructor and Description |
---|
DynamicRegistrationService() |
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response register(ClientRegistration request)
protected void checkInitialAuthentication()
protected void checkSecurityContext()
protected void checkRegistrationAccessToken(Client c, String accessToken)
@GET @Produces(value="application/json") public ClientRegistration readClientRegistrationWithQuery(@QueryParam(value="client_id") String clientId)
@GET @Path(value="{clientId}") @Produces(value="application/json") public ClientRegistration readClientRegistrationWithPath(@PathParam(value="clientId") String clientId)
@PUT @Path(value="{clientId}") @Consumes(value="application/json") public javax.ws.rs.core.Response updateClientRegistration(@PathParam(value="clientId") String clientId)
@DELETE @Path(value="{clientId}") public javax.ws.rs.core.Response deleteClientRegistration(@PathParam(value="clientId") String clientId)
protected ClientRegistrationResponse fromClientToRegistrationResponse(Client client)
protected ClientRegistration doReadClientRegistration(String clientId)
protected ClientRegistration fromClientToClientRegistration(Client c)
public String getInitialAccessToken()
public void setInitialAccessToken(String initialAccessToken)
protected Client createNewClient(ClientRegistration request)
protected boolean isPasswordRequired(List<String> grantTypes, String tokenEndpointAuthMethod)
protected void validateRequestUri(String uri, String appType, List<String> grantTypes)
public void setClientProvider(ClientRegistrationProvider clientProvider)
protected String generateClientId()
public int getClientIdSizeInBytes()
public void setClientIdSizeInBytes(int size)
protected String generateClientSecret(ClientRegistration request)
protected String getRequestAccessToken()
protected int getClientSecretSizeInBytes(ClientRegistration request)
@Context public void setMessageContext(MessageContext context)
public MessageContext getMessageContext()
public void setSupportRegistrationAccessTokens(boolean supportRegistrationAccessTokens)
public void setUserRole(String userRole)
Apache CXF