@NotNull
  private String getEncodedAuthorization() {
    try {
      return "Basic " + DatatypeConverter.printBase64Binary(apiKey.getBytes("UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }
@NotNull
  private String getEncodedAuthorization() {
    try {
      return "Basic " + DatatypeConverter.printBase64Binary(apiKey.getBytes("UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }
@ 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.

@return the API key with Base 64 encoding
Encodes the API key for Basic authentication .