com.c4_soft.springaddons.security.oauth2.oidc.IdToken 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 com.c4_soft.springaddons.security.oauth2.UnmodifiableClaimSet;
public class IdToken extends UnmodifiableClaimSet implements IdTokenClaimAccessor, Principal {
public IdToken(Map claims) {
super(claims);
}
@Override
public Map getClaims() {
return this;
}
@Override
public String getName() {
return getSubject();
}
}