public class OAuthServiceImpl extends GenericServiceImpl implements org.bimserver.shared.interfaces.OAuthInterface
| Constructor and Description |
|---|
OAuthServiceImpl(ServiceMap serviceMap) |
| Modifier and Type | Method and Description |
|---|---|
String |
authorize(Long oAuthServerOid,
org.bimserver.interfaces.objects.SAuthorization authorization) |
String |
generateForwardUrl(String registrationEndpoint,
String authorizeUrl,
String returnUrl) |
org.bimserver.interfaces.objects.SAuthorization |
getAuthorizationById(Long oid) |
org.bimserver.interfaces.objects.SOAuthServer |
getOAuthServerByClientId(String clientId) |
org.bimserver.interfaces.objects.SOAuthServer |
getOAuthServerById(Long oid) |
String |
getRemoteToken(Long soid,
String code,
Long serverId) |
List<org.bimserver.interfaces.objects.SOAuthAuthorizationCode> |
listAuthorizationCodes() |
List<org.bimserver.interfaces.objects.SOAuthAuthorizationCode> |
listIssuedAuthorizationCodes() |
List<org.bimserver.interfaces.objects.SOAuthServer> |
listRegisteredServers() |
List<org.bimserver.interfaces.objects.SOAuthServer> |
listRegisteredServersLocal() |
Long |
registerApplication(String registrationEndpoint,
String apiUrl,
String redirectUrl) |
org.bimserver.interfaces.objects.SOAuthServer |
registerRemoteApplication(String redirectUrl,
String name,
String description) |
void |
revokeApplication(Long oid) |
void |
revokeAuthorization(Long oid) |
void |
setAuthorizationCode(Long applicationId,
String code) |
getAuthorization, getBimServer, getCurrentUser, getInternalAccessMethod, getServiceMap, getUserSettings, handleException, requireAdminAuthentication, requireAdminAuthenticationAndRunningServer, requireAdminOrMonitorAuthentication, requireAuthentication, requireAuthenticationAndRunningServer, requireRealUserAuthentication, requireRunningServer, requireSelfregistrationAllowed, setAuthorizationpublic OAuthServiceImpl(ServiceMap serviceMap)
public org.bimserver.interfaces.objects.SOAuthServer registerRemoteApplication(String redirectUrl, String name, String description) throws org.bimserver.shared.exceptions.UserException
registerRemoteApplication in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.UserExceptionpublic Long registerApplication(String registrationEndpoint, String apiUrl, String redirectUrl) throws org.bimserver.shared.exceptions.UserException, org.bimserver.shared.exceptions.ServerException
registerApplication in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.UserExceptionorg.bimserver.shared.exceptions.ServerExceptionpublic String generateForwardUrl(String registrationEndpoint, String authorizeUrl, String returnUrl) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
generateForwardUrl in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic List<org.bimserver.interfaces.objects.SOAuthServer> listRegisteredServers() throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
listRegisteredServers in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic List<org.bimserver.interfaces.objects.SOAuthServer> listRegisteredServersLocal() throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
listRegisteredServersLocal in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic void setAuthorizationCode(Long applicationId, String code) throws org.bimserver.shared.exceptions.UserException, org.bimserver.shared.exceptions.ServerException
setAuthorizationCode in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.UserExceptionorg.bimserver.shared.exceptions.ServerExceptionpublic List<org.bimserver.interfaces.objects.SOAuthAuthorizationCode> listAuthorizationCodes() throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
listAuthorizationCodes in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic List<org.bimserver.interfaces.objects.SOAuthAuthorizationCode> listIssuedAuthorizationCodes() throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
listIssuedAuthorizationCodes in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic org.bimserver.interfaces.objects.SOAuthServer getOAuthServerById(Long oid) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
getOAuthServerById in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic void revokeApplication(Long oid) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
revokeApplication in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic void revokeAuthorization(Long oid) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
revokeAuthorization in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic String authorize(Long oAuthServerOid, org.bimserver.interfaces.objects.SAuthorization authorization) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
authorize in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic org.bimserver.interfaces.objects.SAuthorization getAuthorizationById(Long oid) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
getAuthorizationById in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic org.bimserver.interfaces.objects.SOAuthServer getOAuthServerByClientId(String clientId) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
getOAuthServerByClientId in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionpublic String getRemoteToken(Long soid, String code, Long serverId) throws org.bimserver.shared.exceptions.ServerException, org.bimserver.shared.exceptions.UserException
getRemoteToken in interface org.bimserver.shared.interfaces.OAuthInterfaceorg.bimserver.shared.exceptions.ServerExceptionorg.bimserver.shared.exceptions.UserExceptionCopyright © 2019 OpenSource BIM. All rights reserved.