Class Jose4jCallerPrincipal

java.lang.Object
jakarta.security.enterprise.CallerPrincipal
io.extact.rms.platform.jwt.impl.jose4j.Jose4jCallerPrincipal
All Implemented Interfaces:
Principal, org.eclipse.microprofile.jwt.JsonWebToken

public class Jose4jCallerPrincipal extends jakarta.security.enterprise.CallerPrincipal implements org.eclipse.microprofile.jwt.JsonWebToken
jose4jのClaimsを実体に持ったCellerPrincipal実装。 JsonWebTokenに定義されているプロパティ以外の動作は考慮していない。
  • Constructor Details

    • Jose4jCallerPrincipal

      public Jose4jCallerPrincipal(String name, org.jose4j.jwt.JwtClaims claims)
  • Method Details

    • getGroups

      public Set<String> getGroups()
      Specified by:
      getGroups in interface org.eclipse.microprofile.jwt.JsonWebToken
    • getClaimNames

      public Set<String> getClaimNames()
      Specified by:
      getClaimNames in interface org.eclipse.microprofile.jwt.JsonWebToken
    • getClaim

      public <T> T getClaim(String claimName)
      Specified by:
      getClaim in interface org.eclipse.microprofile.jwt.JsonWebToken