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

io.automatiko.engine.quarkus.AsyncCallbackRuntimeConfig Maven / Gradle / Ivy

There is a newer version: 0.36.0
Show newest version
package io.automatiko.engine.quarkus;

import java.util.Optional;

import io.automatiko.engine.api.config.AsyncCallbackConfig;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;

@ConfigGroup
public class AsyncCallbackRuntimeConfig extends AsyncCallbackConfig {

    /**
     * Specifies authorization type to be used when callbacks are invoked
     */
    @ConfigItem
    public Optional authType;

    /**
     * Specifies basic authorization string, expected user name and password encrypted with Base64 but without
     * Basic  prefix
     */
    @ConfigItem
    public Optional authBasic;

    /**
     * Specifies user name to be used for basic authentication
     */
    @ConfigItem
    public Optional authUser;

    /**
     * Specifies password to be used for basic authentication
     */
    @ConfigItem
    public Optional authPassword;

    /**
     * Specifies complete access token to be used as bearer token on the callback call
     */
    @ConfigItem
    public Optional authAccessToken;

    /**
     * Specifies client id to be used to obtain OAuth token
     */
    @ConfigItem
    public Optional authClientId;

    /**
     * Specifies client secret to be used to obtain OAuth token
     */
    @ConfigItem
    public Optional authClientSecret;

    /**
     * Specifies refresh token to be used to automatically refresh access token
     */
    @ConfigItem
    public Optional authRefreshToken;

    /**
     * Specifies refresh token endpoint
     */
    @ConfigItem
    public Optional authRefreshUrl;

    /**
     * Specifies scopes to be set when obtaining token
     */
    @ConfigItem
    public Optional authScope;

    /**
     * Specifies name of HTTP header to be set on the callback call
     */
    @ConfigItem
    public Optional authCustomName;

    /**
     * Specifies custom value to be set on the callback call
     */
    @ConfigItem
    public Optional authCustomValue;

    /**
     * Specifies name of the header to be taken from request headers that acts like the "on behalf" information
     */
    @ConfigItem
    public Optional authOnBehalfName;

    @Override
    public Optional authType() {

        return authType;
    }

    @Override
    public Optional authBasic() {

        return authBasic;
    }

    @Override
    public Optional authUser() {

        return authUser;
    }

    @Override
    public Optional authPassword() {

        return authPassword;
    }

    @Override
    public Optional authAccessToken() {

        return authAccessToken;
    }

    @Override
    public Optional authClientId() {

        return authClientId;
    }

    @Override
    public Optional authClientSecret() {

        return authClientSecret;
    }

    @Override
    public Optional authRefreshToken() {

        return authRefreshToken;
    }

    @Override
    public Optional authRefreshUrl() {

        return authRefreshUrl;
    }

    @Override
    public Optional authScope() {

        return authScope;
    }

    @Override
    public Optional authCustomName() {

        return authCustomName;
    }

    @Override
    public Optional authCustomValue() {

        return authCustomValue;
    }

    @Override
    public Optional authOnBehalfName() {

        return authOnBehalfName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy