Class OidcSecurityContext

  • All Implemented Interfaces:
    javax.ws.rs.core.SecurityContext, SecurityContext

    public class OidcSecurityContext
    extends SimpleSecurityContext
    implements javax.ws.rs.core.SecurityContext
    • Constructor Detail

      • OidcSecurityContext

        public OidcSecurityContext​(IdToken token)
    • Method Detail

      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface javax.ws.rs.core.SecurityContext
      • getAuthenticationScheme

        public String getAuthenticationScheme()
        Specified by:
        getAuthenticationScheme in interface javax.ws.rs.core.SecurityContext
      • setRoleClaim

        public void setRoleClaim​(String roleClaim)
        Set the claim name that corresponds to the "role" of the Subject of the IdToken.