public class AbstractTokenService extends AbstractOAuthService
LOG
Constructor and Description |
---|
AbstractTokenService() |
Modifier and Type | Method and Description |
---|---|
protected Client |
authenticateClientIfNeeded(javax.ws.rs.core.MultivaluedMap<String,String> params)
Make sure the client is authenticated
|
protected void |
compareTlsCertificates(TLSSessionInfo tlsInfo,
List<String> base64EncodedCerts) |
protected javax.ws.rs.core.Response |
createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
String error) |
protected javax.ws.rs.core.Response |
createErrorResponseFromBean(OAuthError errorBean) |
protected Client |
getAndValidateClientFromIdAndSecret(String clientId,
String providedClientSecret) |
protected Client |
getClient(String clientId)
Get the
Client reference |
protected Client |
getClientFromBasicAuthScheme() |
protected Client |
getClientFromTLSCertificates(javax.ws.rs.core.SecurityContext sc,
TLSSessionInfo tlsSessionInfo) |
protected String |
getClientIdFromTLSCertificates(javax.ws.rs.core.SecurityContext sc,
TLSSessionInfo tlsInfo) |
protected javax.ws.rs.core.Response |
handleException(OAuthServiceException ex,
String error) |
boolean |
isCanSupportPublicClients() |
protected boolean |
isConfidenatialClientSecretValid(Client client,
String providedClientSecret) |
protected boolean |
isValidPublicClient(Client client,
String clientId,
String clientSecret) |
protected void |
reportInvalidClient() |
protected void |
reportInvalidClient(OAuthError error) |
protected String |
retrieveClientId(javax.ws.rs.core.MultivaluedMap<String,String> params) |
void |
setCanSupportPublicClients(boolean support) |
void |
setClientIdProvider(ClientIdProvider clientIdProvider) |
void |
setWriteCustomErrors(boolean writeCustomErrors) |
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParameters
protected Client authenticateClientIfNeeded(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected String retrieveClientId(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected Client getAndValidateClientFromIdAndSecret(String clientId, String providedClientSecret)
protected boolean isConfidenatialClientSecretValid(Client client, String providedClientSecret)
protected boolean isValidPublicClient(Client client, String clientId, String clientSecret)
protected Client getClientFromBasicAuthScheme()
protected Client getClientFromTLSCertificates(javax.ws.rs.core.SecurityContext sc, TLSSessionInfo tlsSessionInfo)
protected String getClientIdFromTLSCertificates(javax.ws.rs.core.SecurityContext sc, TLSSessionInfo tlsInfo)
protected void compareTlsCertificates(TLSSessionInfo tlsInfo, List<String> base64EncodedCerts)
protected javax.ws.rs.core.Response handleException(OAuthServiceException ex, String error)
protected javax.ws.rs.core.Response createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params, String error)
protected javax.ws.rs.core.Response createErrorResponseFromBean(OAuthError errorBean)
protected Client getClient(String clientId)
Client
referenceclientId
- the provided client id{@link
- javax.ws.rs.WebApplicationException} if no matching Client is foundprotected void reportInvalidClient()
protected void reportInvalidClient(OAuthError error)
public void setCanSupportPublicClients(boolean support)
public boolean isCanSupportPublicClients()
public void setWriteCustomErrors(boolean writeCustomErrors)
public void setClientIdProvider(ClientIdProvider clientIdProvider)
Apache CXF