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

org.h2.security.auth.RealmConfig Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta2
Show newest version
/*
 * Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
 * and the EPL 1.0 (https://h2database.com/html/license.html).
 * Initial Developer: Alessandro Ventura
 */
package org.h2.security.auth;

import java.util.ArrayList;
import java.util.List;

/**
 * Configuration for authentication realm.
 */
public class RealmConfig implements HasConfigProperties {

    private String name;
    private String validatorClass;
    private List properties;

    /**
     * Gets realm's name.
     *
     * @return realm's name.
     */
    public String getName() {
        return name;
    }

    /**
     * Sets realm's name.
     *
     * @param name realm's name.
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets validator class name.
     *
     * @return validator class name.
     */
    public String getValidatorClass() {
        return validatorClass;
    }

    /**
     * Sets validator class name.
     *
     * @param  validatorClass validator class name.
     */
    public void setValidatorClass(String validatorClass) {
        this.validatorClass = validatorClass;
    }

    @Override
    public List getProperties() {
        if (properties == null) {
            properties = new ArrayList<>();
        }
        return properties;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy