no.nav.apiapp.util.SubjectUtils Maven / Gradle / Ivy
package no.nav.apiapp.util;
import no.nav.brukerdialog.security.domain.IdentType;
import no.nav.common.auth.Subject;
import no.nav.common.auth.SubjectHandler;
import java.util.Optional;
@Deprecated // bruk SubjectHandler direkte
public class SubjectUtils {
public static Optional getIdentType() {
return SubjectHandler.getIdentType();
}
public static Optional getUserId() {
return SubjectHandler.getIdent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy