Class NettySecurityContext
- java.lang.Object
-
- org.glassfish.jersey.netty.httpserver.NettySecurityContext
-
- All Implemented Interfaces:
SecurityContext
public class NettySecurityContext extends Object implements SecurityContext
-
-
Field Summary
-
Fields inherited from interface jakarta.ws.rs.core.SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
-
Constructor Summary
Constructors Constructor Description NettySecurityContext(io.netty.channel.ChannelHandlerContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthenticationScheme()io.netty.channel.ChannelHandlerContextgetNettyContext()PrincipalgetUserPrincipal()booleanisSecure()booleanisUserInRole(String role)
-
-
-
Method Detail
-
getNettyContext
public io.netty.channel.ChannelHandlerContext getNettyContext()
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRolein interfaceSecurityContext
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceSecurityContext
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceSecurityContext
-
getAuthenticationScheme
public String getAuthenticationScheme()
- Specified by:
getAuthenticationSchemein interfaceSecurityContext
-
-