public class OidcSecurityContext extends SimpleSecurityContext implements javax.ws.rs.core.SecurityContext
Constructor and Description |
---|
OidcSecurityContext(IdToken token) |
OidcSecurityContext(OidcClientTokenContext oidcContext) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationScheme() |
OidcClientTokenContext |
getOidcContext() |
protected static String |
getPrincipalName(AbstractUserInfo info) |
protected static String |
getPrincipalName(OidcClientTokenContext oidcContext) |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
void |
setRoleClaim(String roleClaim)
Set the claim name that corresponds to the "role" of the Subject of the IdToken.
|
getUserPrincipal
public OidcSecurityContext(IdToken token)
public OidcSecurityContext(OidcClientTokenContext oidcContext)
public OidcClientTokenContext getOidcContext()
protected static String getPrincipalName(OidcClientTokenContext oidcContext)
protected static String getPrincipalName(AbstractUserInfo info)
public boolean isSecure()
public String getAuthenticationScheme()
public boolean isUserInRole(String role)
isUserInRole
in interface SecurityContext
isUserInRole
in class SimpleSecurityContext
public void setRoleClaim(String roleClaim)
Apache CXF