src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java
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 .