All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aeontronix.anypointsdk.auth.credentials.AnypointClientCredentials Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta35
Show newest version
/*
 * Copyright (c) 2023. Aeontronix Inc
 */

package com.aeontronix.anypointsdk.auth.credentials;

import com.aeontronix.anypointsdk.auth.AnypointClientCredentialsAuthenticationHandler;
import com.aeontronix.restclient.auth.AuthenticationHandler;

public class AnypointClientCredentials implements AnypointCredentials {
    private String clientId;
    private String clientSecret;

    public AnypointClientCredentials() {
    }

    public AnypointClientCredentials(String clientId, String clientSecret) {
        this.clientId = clientId;
        this.clientSecret = clientSecret;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    @Override
    public AuthenticationHandler toAuthenticationHandler() {
        return new AnypointClientCredentialsAuthenticationHandler(clientId, clientSecret);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy