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

io.nixer.nixerplugin.captcha.recaptcha.CaptchaKeyProvider Maven / Gradle / Ivy

package io.nixer.nixerplugin.captcha.recaptcha;

import org.springframework.util.Assert;

/**
 * Provider api for accessing captcha properties
 */
public class CaptchaKeyProvider {

    private final String siteKey;

    public CaptchaKeyProvider(RecaptchaProperties recaptchaProperties) {
        Assert.notNull(recaptchaProperties, "RecaptchaProperties must not be null");
        this.siteKey = recaptchaProperties.getKey().getSite();
    }

    public String getSiteKey() {
        return siteKey;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy