com.c4_soft.springaddons.security.oauth2.oidc.OidcId Maven / Gradle / Ivy
package com.c4_soft.springaddons.security.oauth2.oidc;
import java.security.Principal;
import java.util.Map;
import org.springframework.security.oauth2.core.oidc.IdTokenClaimAccessor;
import org.springframework.security.oauth2.core.oidc.StandardClaimAccessor;
import com.c4_soft.springaddons.security.oauth2.UnmodifiableClaimSet;
public class OidcId extends UnmodifiableClaimSet implements IdTokenClaimAccessor, StandardClaimAccessor, Principal {
public OidcId(Map claims) {
super(claims);
}
@Override
public Map getClaims() {
return this;
}
@Override
public String getName() {
return getSubject();
}
}