SailPoint IIQ - Generic Java Native Methods
// Get Oauth-2 client id and secret key base 64 encoded value import sailpoint.service.oauth.OAuthClientDTO; import sailpoint.service.oauth.OAuthClientService; import java.util.Base64; import java.util.List; public String getTokenValue(SailPointContext context, String clientName) { OAuthClientService oAuthClientService = new OAuthClientService(context); List<OAuthClientDTO> OAuthClientDTOList = oAuthClientService.getClientDTOs(); log.info("OAuthClientDTOList - " + OAuthClientDTOList); String base64TokenKey = ""; if(null != OAuthClientDTOList) { for(OAuthClientDTO obj : OAuthClientDTOList) { if(clientName.equalsIgnoreCase(obj.getName())) { log.info("dto.getClientId() - " + obj.getClientId()); log.info("dto.getSecret() - " + obj.getSecret()); base64TokenKey = "Basic " + Base64.getEncoder().encodeToString((obj.getClientId() + ":" + obj.getSecret()).getBytes()); log.info("base64Toke...