private String createServiceOwnerCredentials(AuthleteConfiguration configuration)
    {
        if (configuration.getServiceOwnerAccessToken() != null)
        {
            return "Bearer " + configuration.getServiceOwnerAccessToken();
        }
        else
        {
            String key    = configuration.getServiceOwnerApiKey();
            String secret = configuration.getServiceOwnerApiSecret();

            return new BasicCredentials(key, secret).format();
        }
    }
private String createServiceOwnerCredentials(AuthleteConfiguration configuration)
    {
        if (configuration.getServiceOwnerAccessToken() != null)
        {
            return "Bearer " + configuration.getServiceOwnerAccessToken();
        }
        else
        {
            String key    = configuration.getServiceOwnerApiKey();
            String secret = configuration.getServiceOwnerApiSecret();

            return new BasicCredentials(key, secret).format();
        }
    }
private String createServiceOwnerCredentials ( AuthleteConfiguration configuration ) { if ( configuration . getServiceOwnerAccessToken ( ) != null ) { return "Bearer " + configuration . getServiceOwnerAccessToken ( ) ; } else { String key = configuration . getServiceOwnerApiKey ( ) ; String secret = configuration . getServiceOwnerApiSecret ( ) ; return new BasicCredentials ( key , secret ) . format ( ) ; } }
Create an authorization header for the service owner.
Create an authorization header for the service owner .