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

org.openprovenance.prov.service.security.pac.DirectBearerAuthClientConfiguration Maven / Gradle / Ivy

package org.openprovenance.prov.service.security.pac;

import org.pac4j.core.client.Client;

import static org.openprovenance.prov.service.security.pac.Utils.configureDirectBearerAuthClient;


public class DirectBearerAuthClientConfiguration implements ClientConfiguration {

    public String getType() {
        return DIRECT_BEARER_AUTH_CLIENT;
    }
    private String realm;
    private String signaturePublicKey;
    private String role;
    private String clientId;
    private String baseUri;
    private String realmUri;

    public String getRealm() {
        return realm;
    }

    public void setRealm(String realm) {
        this.realm = realm;
    }

    public String getClientId() {
        return clientId;
    }

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


    public String getSignaturePublicKey() {
        return signaturePublicKey;
    }

    public void setSignaturePublicKey(String signaturePublicKey) {
        this.signaturePublicKey = signaturePublicKey;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }


    public String getBaseUri() {
        return baseUri;
    }

    public void setBaseUri(String baseUri) {
        this.baseUri = baseUri;
    }

    public String getRealmUri() {
        return realmUri;
    }

    public void setRealmUri(String realmUri) {
        this.realmUri = realmUri;
    }

    @Override
    public Client configureClient() {
        return configureDirectBearerAuthClient(this);
    }

    @Override
    public String toString() {
        return "DirectBearerAuthClientConfiguration{" +
                "realm='" + realm + '\'' +
                ", signaturePublicKey='" + signaturePublicKey + '\'' +
                ", role='" + role + '\'' +
                ", clientId='" + clientId + '\'' +
                ", baseUri='" + baseUri + '\'' +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy