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
AuthenticationEndpoint
authenticateApplication
in interface AuthenticationEndpoint
basicAuthApp
- 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
AuthenticationEndpoint
authorizeUser
in interface AuthenticationEndpoint
basicAuthApp
- 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
AuthenticationEndpoint
authorizeUserGetToken
in interface AuthenticationEndpoint
basicAuthApp
- 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 AuthenticationEndpoint
basicAuthApp
- 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 AuthenticationEndpoint
basicAuthApp
- 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.