public class OAuthInterfaceAdaptor extends Object implements OAuthInterface
| Constructor and Description |
|---|
OAuthInterfaceAdaptor() |
public String authorize(Long oAuthServerOid, SAuthorization authorization) throws UserException, ServerException
authorize in interface OAuthInterfaceUserExceptionServerExceptionpublic String generateForwardUrl(String registrationEndpoint, String authorizeUrl, String returnUrl) throws UserException, ServerException
generateForwardUrl in interface OAuthInterfaceUserExceptionServerExceptionpublic SAuthorization getAuthorizationById(Long oid) throws UserException, ServerException
getAuthorizationById in interface OAuthInterfaceUserExceptionServerExceptionpublic SOAuthServer getOAuthServerByClientId(String clientId) throws UserException, ServerException
getOAuthServerByClientId in interface OAuthInterfaceUserExceptionServerExceptionpublic SOAuthServer getOAuthServerById(Long oid) throws UserException, ServerException
getOAuthServerById in interface OAuthInterfaceUserExceptionServerExceptionpublic String getRemoteToken(Long soid, String code, Long serverId) throws UserException, ServerException
getRemoteToken in interface OAuthInterfaceUserExceptionServerExceptionpublic List<SOAuthAuthorizationCode> listAuthorizationCodes() throws UserException, ServerException
listAuthorizationCodes in interface OAuthInterfaceUserExceptionServerExceptionpublic List<SOAuthAuthorizationCode> listIssuedAuthorizationCodes() throws UserException, ServerException
listIssuedAuthorizationCodes in interface OAuthInterfaceUserExceptionServerExceptionpublic List<SOAuthServer> listRegisteredServers() throws UserException, ServerException
listRegisteredServers in interface OAuthInterfaceUserExceptionServerExceptionpublic List<SOAuthServer> listRegisteredServersLocal() throws UserException, ServerException
listRegisteredServersLocal in interface OAuthInterfaceUserExceptionServerExceptionpublic Long registerApplication(String registrationEndpoint, String apiUrl, String redirectUrl) throws UserException, ServerException
OAuthInterfaceregisterApplication in interface OAuthInterfaceUserExceptionServerException - returns the clientIdpublic SOAuthServer registerRemoteApplication(String redirectUrl, String name, String description) throws UserException, ServerException
registerRemoteApplication in interface OAuthInterfaceUserExceptionServerExceptionpublic void revokeApplication(Long oid) throws UserException, ServerException
revokeApplication in interface OAuthInterfaceUserExceptionServerExceptionpublic void revokeAuthorization(Long oid) throws UserException, ServerException
revokeAuthorization in interface OAuthInterfaceUserExceptionServerExceptionpublic void setAuthorizationCode(Long applicationId, String code) throws UserException, ServerException
setAuthorizationCode in interface OAuthInterfaceUserExceptionServerExceptionCopyright © 2018 OpenSource BIM. All rights reserved.