private String getAuthHeader ( ) { String base64ClientIdSec = DatatypeConverter . printBase64Binary ( ( oauth2Config . getClientId ( ) + ":" + oauth2Config . getClientSecret ( ) ) . getBytes ( ) ) ; return "Basic " + base64ClientIdSec ; }
Method to generate auth header based on client ID and Client Secret