@ NotNull private String getEncodedAuthorization ( ) { try { return "Basic " + DatatypeConverter . printBase64Binary ( apiKey . getBytes ( "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } }
Encodes the API key for Basic authentication .