public class WWAuthenticationEndpoint extends Object implements AuthenticationEndpoint
| Constructor and Description |
|---|
WWAuthenticationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticateApplication(String basicAuthApp)
Creates POST request for authentication and returns result, if successful, or generates error, if not
|
AuthenticationResult |
authorizeUser(String basicAuthApp,
String userToken,
String url)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
PeopleToken |
authorizeUserGetToken(String basicAuthApp,
String userToken,
String url)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
AuthenticationResult |
authorizeUserRefreshToken(String basicAuthApp,
String refreshToken,
String scope) |
PeopleToken |
authorizeUserRefreshTokenGetToken(String basicAuthApp,
String refreshToken,
String scope) |
public AuthenticationResult authenticateApplication(String basicAuthApp) throws WWException
AuthenticationEndpointauthenticateApplication in interface AuthenticationEndpointbasicAuthApp - String, content for Authorization header constructed from WWClient.getAppCredentials()AuthenticationResult containing response detailsWWException - error detailspublic AuthenticationResult authorizeUser(String basicAuthApp, String userToken, String url) throws WWException
AuthenticationEndpointauthorizeUser in interface AuthenticationEndpointbasicAuthApp - String, content for Authorization header constructed from WWClient.getAppCredentials()userToken - String, user token to passurl - String, URL to redirect to if successfulAuthenticationResult containing response detailsWWException - error detailspublic PeopleToken authorizeUserGetToken(String basicAuthApp, String userToken, String url) throws WWException
AuthenticationEndpointauthorizeUserGetToken in interface AuthenticationEndpointbasicAuthApp - String, content for Authorization header constructed from WWClient.getAppCredentials()userToken - String, user token to passurl - String, URL to redirect to if successfulPeopleToken responseWWException - error detailspublic AuthenticationResult authorizeUserRefreshToken(String basicAuthApp, String refreshToken, String scope) throws WWException
authorizeUserRefreshToken in interface AuthenticationEndpointbasicAuthApp - String, content for Authorization header constructed from WWClient.getAppCredentials()refreshToken - String, refresh token to passscope - String, scope for the tokenAuthenticationResult containing response detailsWWException - error detailspublic PeopleToken authorizeUserRefreshTokenGetToken(String basicAuthApp, String refreshToken, String scope) throws WWException
authorizeUserRefreshTokenGetToken in interface AuthenticationEndpointbasicAuthApp - String, content for Authorization header constructed from WWClient.getAppCredentials()refreshToken - String, refresh token to passscope - String, scope for the tokenPeopleToken containing response detailsWWException - error detailsCopyright © 2018 OpenNTF. All rights reserved.