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

no.nav.brukerdialog.security.oidc.IdTokenProviderConfig Maven / Gradle / Ivy

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

import lombok.Builder;
import lombok.Value;
import no.nav.brukerdialog.security.Constants;
import no.nav.brukerdialog.security.oidc.provider.IssoOidcProviderConfig;


@Value
@Builder
public class IdTokenProviderConfig {

    public String issoHostUrl;
    public String issoRpUserPassword;

    public static IdTokenProviderConfig resolveFromSystemProperties() {
        return IdTokenProviderConfig.builder()
                .issoHostUrl(Constants.getIssoHostUrl())
                .issoRpUserPassword(Constants.getIssoRpUserPassword())
                .build();
    }

    public static IdTokenProviderConfig from(IssoOidcProviderConfig issoOidcProviderConfig) {
        return IdTokenProviderConfig.builder()
                .issoHostUrl(issoOidcProviderConfig.issoHostUrl)
                .issoRpUserPassword(issoOidcProviderConfig.issoRpUserPassword)
                .build();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy