blob: 28cb224956fea30205cb24b50fde797c04ea5dfe [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>AbstractTokenService (Apache CXF JavaDoc 3.1.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AbstractTokenService (Apache CXF JavaDoc 3.1.0 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AbstractTokenService.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>Apache CXF API</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html" title="class in org.apache.cxf.rs.security.oauth2.services"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AccessTokenService.html" title="class in org.apache.cxf.rs.security.oauth2.services"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html" target="_top">Frames</a></li>
<li><a href="AbstractTokenService.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.cxf.rs.security.oauth2.services</div>
<h2 title="Class AbstractTokenService" class="title">Class AbstractTokenService</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html" title="class in org.apache.cxf.rs.security.oauth2.services">org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService</a></li>
<li>
<ul class="inheritance">
<li>org.apache.cxf.rs.security.oauth2.services.AbstractTokenService</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AccessTokenService.html" title="class in org.apache.cxf.rs.security.oauth2.services">AccessTokenService</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/TokenRevocationService.html" title="class in org.apache.cxf.rs.security.oauth2.services">TokenRevocationService</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">AbstractTokenService</span>
extends <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html" title="class in org.apache.cxf.rs.security.oauth2.services">AbstractOAuthService</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.cxf.rs.security.oauth2.services.<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html" title="class in org.apache.cxf.rs.security.oauth2.services">AbstractOAuthService</a></h3>
<code><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#LOG">LOG</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#AbstractTokenService()">AbstractTokenService</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#authenticateClientIfNeeded(javax.ws.rs.core.MultivaluedMap)">authenticateClientIfNeeded</a></strong>(javax.ws.rs.core.MultivaluedMap&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;params)</code>
<div class="block">Make sure the client is authenticated</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#compareTlsCertificates(org.apache.cxf.security.transport.TLSSessionInfo,%20java.util.List)">compareTlsCertificates</a></strong>(<a href="../../../../../../../org/apache/cxf/security/transport/TLSSessionInfo.html" title="class in org.apache.cxf.security.transport">TLSSessionInfo</a>&nbsp;tlsInfo,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;base64EncodedCerts)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected javax.ws.rs.core.Response</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#createErrorResponse(javax.ws.rs.core.MultivaluedMap,%20java.lang.String)">createErrorResponse</a></strong>(javax.ws.rs.core.MultivaluedMap&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;params,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;error)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected javax.ws.rs.core.Response</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#createErrorResponseFromBean(org.apache.cxf.rs.security.oauth2.common.OAuthError)">createErrorResponseFromBean</a></strong>(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/OAuthError.html" title="class in org.apache.cxf.rs.security.oauth2.common">OAuthError</a>&nbsp;errorBean)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#getAndValidateClientFromIdAndSecret(java.lang.String,%20java.lang.String)">getAndValidateClientFromIdAndSecret</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientId,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;providedClientSecret)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#getClient(java.lang.String)">getClient</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientId)</code>
<div class="block">Get the <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common"><code>Client</code></a> reference</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#getClientFromBasicAuthScheme()">getClientFromBasicAuthScheme</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#getClientFromTLSCertificates(javax.ws.rs.core.SecurityContext,%20org.apache.cxf.security.transport.TLSSessionInfo)">getClientFromTLSCertificates</a></strong>(javax.ws.rs.core.SecurityContext&nbsp;sc,
<a href="../../../../../../../org/apache/cxf/security/transport/TLSSessionInfo.html" title="class in org.apache.cxf.security.transport">TLSSessionInfo</a>&nbsp;tlsSessionInfo)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#getClientIdFromTLSCertificates(javax.ws.rs.core.SecurityContext,%20org.apache.cxf.security.transport.TLSSessionInfo)">getClientIdFromTLSCertificates</a></strong>(javax.ws.rs.core.SecurityContext&nbsp;sc,
<a href="../../../../../../../org/apache/cxf/security/transport/TLSSessionInfo.html" title="class in org.apache.cxf.security.transport">TLSSessionInfo</a>&nbsp;tlsInfo)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected javax.ws.rs.core.Response</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#handleException(org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException,%20java.lang.String)">handleException</a></strong>(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/provider/OAuthServiceException.html" title="class in org.apache.cxf.rs.security.oauth2.provider">OAuthServiceException</a>&nbsp;ex,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;error)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#isCanSupportPublicClients()">isCanSupportPublicClients</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#isConfidenatialClientSecretValid(org.apache.cxf.rs.security.oauth2.common.Client,%20java.lang.String)">isConfidenatialClientSecretValid</a></strong>(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;client,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;providedClientSecret)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#isValidPublicClient(org.apache.cxf.rs.security.oauth2.common.Client,%20java.lang.String,%20java.lang.String)">isValidPublicClient</a></strong>(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;client,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientId,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientSecret)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#reportInvalidClient()">reportInvalidClient</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#reportInvalidClient(org.apache.cxf.rs.security.oauth2.common.OAuthError)">reportInvalidClient</a></strong>(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/OAuthError.html" title="class in org.apache.cxf.rs.security.oauth2.common">OAuthError</a>&nbsp;error)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#retrieveClientId(javax.ws.rs.core.MultivaluedMap)">retrieveClientId</a></strong>(javax.ws.rs.core.MultivaluedMap&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;params)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#setCanSupportPublicClients(boolean)">setCanSupportPublicClients</a></strong>(boolean&nbsp;support)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#setClientIdProvider(org.apache.cxf.rs.security.oauth2.provider.ClientIdProvider)">setClientIdProvider</a></strong>(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/provider/ClientIdProvider.html" title="interface in org.apache.cxf.rs.security.oauth2.provider">ClientIdProvider</a>&nbsp;clientIdProvider)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html#setWriteCustomErrors(boolean)">setWriteCustomErrors</a></strong>(boolean&nbsp;writeCustomErrors)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.cxf.rs.security.oauth2.services.<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html" title="class in org.apache.cxf.rs.security.oauth2.services">AbstractOAuthService</a></h3>
<code><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#checkTransportSecurity()">checkTransportSecurity</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#getDataProvider()">getDataProvider</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#getMessageContext()">getMessageContext</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#getQueryParameters()">getQueryParameters</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#getValidClient(javax.ws.rs.core.MultivaluedMap)">getValidClient</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#getValidClient(java.lang.String)">getValidClient</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#isWriteOptionalParameters()">isWriteOptionalParameters</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#reportInvalidRequestError(org.apache.cxf.rs.security.oauth2.common.OAuthError)">reportInvalidRequestError</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#reportInvalidRequestError(org.apache.cxf.rs.security.oauth2.common.OAuthError,%20javax.ws.rs.core.MediaType)">reportInvalidRequestError</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#reportInvalidRequestError(java.lang.String)">reportInvalidRequestError</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#reportInvalidRequestError(java.lang.String,%20javax.ws.rs.core.MediaType)">reportInvalidRequestError</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#setBlockUnsecureRequests(boolean)">setBlockUnsecureRequests</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#setDataProvider(org.apache.cxf.rs.security.oauth2.provider.OAuthDataProvider)">setDataProvider</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext)">setMessageContext</a>, <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html#setWriteOptionalParameters(boolean)">setWriteOptionalParameters</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="AbstractTokenService()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AbstractTokenService</h4>
<pre>public&nbsp;AbstractTokenService()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="authenticateClientIfNeeded(javax.ws.rs.core.MultivaluedMap)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>authenticateClientIfNeeded</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;authenticateClientIfNeeded(javax.ws.rs.core.MultivaluedMap&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;params)</pre>
<div class="block">Make sure the client is authenticated</div>
</li>
</ul>
<a name="retrieveClientId(javax.ws.rs.core.MultivaluedMap)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retrieveClientId</h4>
<pre>protected&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;retrieveClientId(javax.ws.rs.core.MultivaluedMap&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;params)</pre>
</li>
</ul>
<a name="getAndValidateClientFromIdAndSecret(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAndValidateClientFromIdAndSecret</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;getAndValidateClientFromIdAndSecret(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientId,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;providedClientSecret)</pre>
</li>
</ul>
<a name="isConfidenatialClientSecretValid(org.apache.cxf.rs.security.oauth2.common.Client, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isConfidenatialClientSecretValid</h4>
<pre>protected&nbsp;boolean&nbsp;isConfidenatialClientSecretValid(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;client,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;providedClientSecret)</pre>
</li>
</ul>
<a name="isValidPublicClient(org.apache.cxf.rs.security.oauth2.common.Client, java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isValidPublicClient</h4>
<pre>protected&nbsp;boolean&nbsp;isValidPublicClient(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;client,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientId,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientSecret)</pre>
</li>
</ul>
<a name="getClientFromBasicAuthScheme()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClientFromBasicAuthScheme</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;getClientFromBasicAuthScheme()</pre>
</li>
</ul>
<a name="getClientFromTLSCertificates(javax.ws.rs.core.SecurityContext, org.apache.cxf.security.transport.TLSSessionInfo)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClientFromTLSCertificates</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;getClientFromTLSCertificates(javax.ws.rs.core.SecurityContext&nbsp;sc,
<a href="../../../../../../../org/apache/cxf/security/transport/TLSSessionInfo.html" title="class in org.apache.cxf.security.transport">TLSSessionInfo</a>&nbsp;tlsSessionInfo)</pre>
</li>
</ul>
<a name="getClientIdFromTLSCertificates(javax.ws.rs.core.SecurityContext, org.apache.cxf.security.transport.TLSSessionInfo)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClientIdFromTLSCertificates</h4>
<pre>protected&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getClientIdFromTLSCertificates(javax.ws.rs.core.SecurityContext&nbsp;sc,
<a href="../../../../../../../org/apache/cxf/security/transport/TLSSessionInfo.html" title="class in org.apache.cxf.security.transport">TLSSessionInfo</a>&nbsp;tlsInfo)</pre>
</li>
</ul>
<a name="compareTlsCertificates(org.apache.cxf.security.transport.TLSSessionInfo, java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareTlsCertificates</h4>
<pre>protected&nbsp;void&nbsp;compareTlsCertificates(<a href="../../../../../../../org/apache/cxf/security/transport/TLSSessionInfo.html" title="class in org.apache.cxf.security.transport">TLSSessionInfo</a>&nbsp;tlsInfo,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;base64EncodedCerts)</pre>
</li>
</ul>
<a name="handleException(org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleException</h4>
<pre>protected&nbsp;javax.ws.rs.core.Response&nbsp;handleException(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/provider/OAuthServiceException.html" title="class in org.apache.cxf.rs.security.oauth2.provider">OAuthServiceException</a>&nbsp;ex,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;error)</pre>
</li>
</ul>
<a name="createErrorResponse(javax.ws.rs.core.MultivaluedMap, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createErrorResponse</h4>
<pre>protected&nbsp;javax.ws.rs.core.Response&nbsp;createErrorResponse(javax.ws.rs.core.MultivaluedMap&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;params,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;error)</pre>
</li>
</ul>
<a name="createErrorResponseFromBean(org.apache.cxf.rs.security.oauth2.common.OAuthError)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createErrorResponseFromBean</h4>
<pre>protected&nbsp;javax.ws.rs.core.Response&nbsp;createErrorResponseFromBean(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/OAuthError.html" title="class in org.apache.cxf.rs.security.oauth2.common">OAuthError</a>&nbsp;errorBean)</pre>
</li>
</ul>
<a name="getClient(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClient</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common">Client</a>&nbsp;getClient(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clientId)</pre>
<div class="block">Get the <a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/Client.html" title="class in org.apache.cxf.rs.security.oauth2.common"><code>Client</code></a> reference</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>clientId</code> - the provided client id</dd>
<dt><span class="strong">Returns:</span></dt><dd>Client the client reference</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>{@link</code> - javax.ws.rs.WebApplicationException} if no matching Client is found</dd></dl>
</li>
</ul>
<a name="reportInvalidClient()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reportInvalidClient</h4>
<pre>protected&nbsp;void&nbsp;reportInvalidClient()</pre>
</li>
</ul>
<a name="reportInvalidClient(org.apache.cxf.rs.security.oauth2.common.OAuthError)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reportInvalidClient</h4>
<pre>protected&nbsp;void&nbsp;reportInvalidClient(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/common/OAuthError.html" title="class in org.apache.cxf.rs.security.oauth2.common">OAuthError</a>&nbsp;error)</pre>
</li>
</ul>
<a name="setCanSupportPublicClients(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCanSupportPublicClients</h4>
<pre>public&nbsp;void&nbsp;setCanSupportPublicClients(boolean&nbsp;support)</pre>
</li>
</ul>
<a name="isCanSupportPublicClients()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCanSupportPublicClients</h4>
<pre>public&nbsp;boolean&nbsp;isCanSupportPublicClients()</pre>
</li>
</ul>
<a name="setWriteCustomErrors(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWriteCustomErrors</h4>
<pre>public&nbsp;void&nbsp;setWriteCustomErrors(boolean&nbsp;writeCustomErrors)</pre>
</li>
</ul>
<a name="setClientIdProvider(org.apache.cxf.rs.security.oauth2.provider.ClientIdProvider)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setClientIdProvider</h4>
<pre>public&nbsp;void&nbsp;setClientIdProvider(<a href="../../../../../../../org/apache/cxf/rs/security/oauth2/provider/ClientIdProvider.html" title="interface in org.apache.cxf.rs.security.oauth2.provider">ClientIdProvider</a>&nbsp;clientIdProvider)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AbstractTokenService.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>Apache CXF API</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AbstractOAuthService.html" title="class in org.apache.cxf.rs.security.oauth2.services"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../../org/apache/cxf/rs/security/oauth2/services/AccessTokenService.html" title="class in org.apache.cxf.rs.security.oauth2.services"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.html" target="_top">Frames</a></li>
<li><a href="AbstractTokenService.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Apache CXF</small></p>
</body>
</html>