public interface AuthenticationEndpoint
| 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 redirectTo)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
AuthenticationResult authenticateApplication(String basicAuthApp) throws WWException
basicAuthApp - String, content for Authroization header constructed from WWClient.getAppCredentials()AuthenticationResult containing response detailsWWException - error detailsAuthenticationResult authorizeUser(String basicAuthApp, String userToken, String redirectTo) throws WWException
basicAuthApp - String, content for Authroization header constructed from WWClient.getAppCredentials()userToken - String, user token to passredirectTo - String, URL to redirect to if successfulAuthenticationResult containing response detailsWWException - error detailsCopyright © 2017 OpenNTF. All rights reserved.