public class WWAuthenticationEndpoint extends Object implements AuthenticationEndpoint
| Constructor and Description |
|---|
WWAuthenticationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticateApplication(String basicAuth)
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
|
public AuthenticationResult authenticateApplication(String basicAuth) throws WWException
AuthenticationEndpointauthenticateApplication in interface AuthenticationEndpointbasicAuth - String, content for Authroization 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 Authroization header constructed from WWClient.getAppCredentials()userToken - String, user token to passurl - String, URL to redirect to if successfulAuthenticationResult containing response detailsWWException - error detailsCopyright © 2017 OpenNTF. All rights reserved.