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

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

There is a newer version: 2.2.1
Show newest version
package org.openprovenance.prov.service.security.pac;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

import java.util.Map;

public class SecurityConfiguration {

    private String callbackUrl;

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }
    
    @JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property = "@type")
    @JsonSubTypes({
            @JsonSubTypes.Type(value = DirectBearerAuthClientConfiguration.class, name = ClientConfiguration.DIRECT_BEARER_AUTH_CLIENT),
            @JsonSubTypes.Type(value = KeycloakOidcClientConfiguration.class, name = ClientConfiguration.KEYCLOAK_OIDC_CLIENT)
    })
    public Map configurations;

    @Override
    public String toString() {
        return "SecurityConfiguration{" +
                "callbackUrl='" + callbackUrl + '\'' +
                ", configurations=" + configurations +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy