public interface TokenClient extends com.covisint.core.http.service.client.ResourceClient<Token>
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> |
getToken(String clientId,
String clientSecret,
org.apache.http.protocol.HttpContext httpContext)
Generate token for client credentials.
|
com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> |
getToken(String clientId,
String certificate,
String publickey,
String x509RequestAttributeName,
org.apache.http.protocol.HttpContext httpContext)
generate token for certificate.
|
com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> |
postAccessToken(String clientId,
String clientSecret,
org.apache.http.protocol.HttpContext httpContext)
Generate token for client credentials via post.
|
com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> |
postAccessToken(String clientId,
String certificate,
String publickey,
String x509RequestAttributeName,
org.apache.http.protocol.HttpContext httpContext)
generate token for certificate via post.
|
@Nonnull com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> getToken(@Nonnull@NotEmpty String clientId, @Nonnull@NotEmpty String clientSecret, @Nonnull org.apache.http.protocol.HttpContext httpContext)
clientId - the client id.clientSecret - the client secret.httpContext - the http context.@Nonnull com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> postAccessToken(@Nonnull@NotEmpty String clientId, @Nonnull@NotEmpty String clientSecret, @Nonnull org.apache.http.protocol.HttpContext httpContext)
clientId - the client id.clientSecret - the client secret.httpContext - the http context.@Nonnull com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> getToken(@Nonnull@NotEmpty String clientId, @Nullable String certificate, @Nullable String publickey, @Nullable String x509RequestAttributeName, @Nonnull org.apache.http.protocol.HttpContext httpContext)
clientId - the grant type id.certificate - the certificatepublickey - the public keyx509RequestAttributeName - the X509 request attribute NamehttpContext - httpContext the http context.@Nonnull com.google.common.util.concurrent.CheckedFuture<Token,com.covisint.core.http.service.core.ServiceException> postAccessToken(@Nonnull@NotEmpty String clientId, @Nullable String certificate, @Nullable String publickey, @Nullable String x509RequestAttributeName, @Nonnull org.apache.http.protocol.HttpContext httpContext)
clientId - the grant type id.certificate - the certificatepublickey - the public keyx509RequestAttributeName - the X509 request attribute NamehttpContext - httpContext the http context.Copyright © 2015 Covisint. All rights reserved.