public class OAuth2CredentialsStoreServiceImpl extends Object implements OAuth2CredentialsStoreService
Constructor and Description |
---|
OAuth2CredentialsStoreServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
deletePersonalOAuth2Credentials(String remoteSystemId)
Delete the current users OAuth2 Credentials for the remote system
|
boolean |
deleteSharedOAuth2Credentials(String remoteSystemId,
OAuth2CredentialsInfo credentials) |
OAuth2CredentialsInfo |
getPersonalOAuth2Credentials(String remoteSystemId)
Get the current users OAuth2Credentials for the remote systems
|
List<OAuth2CredentialsInfo> |
listSharedOAuth2Credentials(String remoteSystemId) |
void |
setRemoteCredentialsService(RemoteCredentialsService remoteCredentialsService) |
OAuth2CredentialsInfo |
storePersonalOAuth2Credentials(String remoteSystemId,
String accessToken,
String refreshToken,
Date expiresAt,
Date issuedAt)
Add or Update OAuth2 Credentials for the current user to the OAuth2
Credential Store
|
OAuth2CredentialsInfo |
storeSharedOAuth2Credentials(String remoteSystemId,
String accessToken,
String refreshToken,
Date expiresAt,
Date issuedAt)
Add Shared OAuth2 Credentials to the OAuth2 Credential Store
|
OAuth2CredentialsInfo |
updateCredentialsAuthenticationSucceeded(boolean succeeded,
OAuth2CredentialsInfo credentials) |
OAuth2CredentialsInfo |
updateSharedOAuth2Credentials(OAuth2CredentialsInfo exisitingCredentials,
String remoteSystemId,
String accessToken,
String refreshToken,
Date expiresAt,
Date issuedAt) |
public void setRemoteCredentialsService(RemoteCredentialsService remoteCredentialsService)
public OAuth2CredentialsInfo storePersonalOAuth2Credentials(String remoteSystemId, String accessToken, String refreshToken, Date expiresAt, Date issuedAt) throws NoSuchSystemException
storePersonalOAuth2Credentials
in interface OAuth2CredentialsStoreService
remoteSystemId
- StringaccessToken
- StringrefreshToken
- StringexpiresAt
- DateissuedAt
- if null, the current Datetime will be usedNoSuchSystemException
public OAuth2CredentialsInfo storeSharedOAuth2Credentials(String remoteSystemId, String accessToken, String refreshToken, Date expiresAt, Date issuedAt) throws NoSuchSystemException
storeSharedOAuth2Credentials
in interface OAuth2CredentialsStoreService
remoteSystemId
- StringaccessToken
- StringrefreshToken
- StringexpiresAt
- DateissuedAt
- DateNoSuchSystemException
public OAuth2CredentialsInfo updateSharedOAuth2Credentials(OAuth2CredentialsInfo exisitingCredentials, String remoteSystemId, String accessToken, String refreshToken, Date expiresAt, Date issuedAt) throws NoSuchSystemException
updateSharedOAuth2Credentials
in interface OAuth2CredentialsStoreService
exisitingCredentials
- OAuth2CredentialsInforemoteSystemId
- StringaccessToken
- StringrefreshToken
- StringexpiresAt
- DateissuedAt
- DateNoSuchSystemException
public OAuth2CredentialsInfo getPersonalOAuth2Credentials(String remoteSystemId) throws NoSuchSystemException
getPersonalOAuth2Credentials
in interface OAuth2CredentialsStoreService
remoteSystemId
- StringNoSuchSystemException
public List<OAuth2CredentialsInfo> listSharedOAuth2Credentials(String remoteSystemId) throws NoSuchSystemException
listSharedOAuth2Credentials
in interface OAuth2CredentialsStoreService
remoteSystemId
- StringNoSuchSystemException
public boolean deletePersonalOAuth2Credentials(String remoteSystemId) throws NoSuchSystemException
deletePersonalOAuth2Credentials
in interface OAuth2CredentialsStoreService
remoteSystemId
- StringNoSuchSystemException
public boolean deleteSharedOAuth2Credentials(String remoteSystemId, OAuth2CredentialsInfo credentials) throws NoSuchSystemException
deleteSharedOAuth2Credentials
in interface OAuth2CredentialsStoreService
NoSuchSystemException
public OAuth2CredentialsInfo updateCredentialsAuthenticationSucceeded(boolean succeeded, OAuth2CredentialsInfo credentials)
updateCredentialsAuthenticationSucceeded
in interface OAuth2CredentialsStoreService
succeeded
- booleancredentials
- OAuth2CredentialsInfoCopyright © 2005–2017 Alfresco Software. All rights reserved.