Class WebIdPrincipal

  • All Implemented Interfaces:
    Principal, org.eclipse.microprofile.jwt.JsonWebToken

    public class WebIdPrincipal
    extends Object
    implements org.eclipse.microprofile.jwt.JsonWebToken
    A WebID-based principal.
    • Constructor Detail

      • WebIdPrincipal

        public WebIdPrincipal​(org.eclipse.microprofile.jwt.JsonWebToken jwt)
        Create a WebID-based principal from a JWT.
        Parameters:
        jwt - the JWT
    • Method Detail

      • getClaim

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

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

        public String getName()
        Specified by:
        getName in interface org.eclipse.microprofile.jwt.JsonWebToken
        Specified by:
        getName in interface Principal