|Modifier and Type||Method and Description|
UserCredential getUserCredential(String alias) throws SecureStoreException
UserCredentialcontaining user credential details deployed on the node against given alias.
alias- - the alias used while deploying the user credentials
UserCredentialcontaining details like username and associated properties
SecureStoreException- if the provided alias is
nullor empty, if user credential for the alias does not exist, or any other error occurs, like SercureStore service is not started
AccessTokenAndUser getAccesTokenForOauth2AuthorizationCodeCredential(String credentialName) throws SecureStoreException
AccessTokenAndUserthe access token and user name for an OAuth2 Authorization Code credential. The access token is fetched from the OAuth2 authorization server via refresh_token grant type and cached by the implementation. If the access token expires then a new access token is fetched.
credentialName- name of an OAuth2 Authorization Code credential
SecureStoreException- if the provided credentialName is
nullor empty, if an OAuth2 Authorization Code credential for the credentialName does not exist, or any other error occurs, like connection problems to the OAUTH authentication server, or the OAuth2 Authorization credential does not yet have a refresh token (because the "Authorize" step was not executed by the Administrator)
Copyright © 2020 SAP. All rights reserved.