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

no.nav.brukerdialog.security.jaspic.AuthorizationRequestBuilderConfig Maven / Gradle / Ivy

There is a newer version: 1.2020.02.21_14.01-cdaccec525a6
Show newest version
package no.nav.brukerdialog.security.jaspic;

import lombok.Builder;
import lombok.Value;
import no.nav.brukerdialog.security.Constants;

import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.net.URLEncoder;
import java.security.SecureRandom;

import static no.nav.brukerdialog.security.Constants.*;
import static no.nav.brukerdialog.security.Constants.getIssoRpUserUsername;
import static no.nav.brukerdialog.security.Constants.getOidcRedirectUrl;

@Value
@Builder
public class AuthorizationRequestBuilderConfig {

    private String issoHostUrl;
    private String clientId;
    private String redirectUrl;

    public static AuthorizationRequestBuilderConfig resolveFromSystemProperties() {
        return AuthorizationRequestBuilderConfig.builder()
                .issoHostUrl(Constants.getIssoHostUrl())
                .clientId(getIssoRpUserUsername())
                .redirectUrl(getOidcRedirectUrl())
                .build();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy