public class NettySecurityContext extends Object implements SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Constructor and Description |
|---|
NettySecurityContext(io.netty.channel.ChannelHandlerContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
io.netty.channel.ChannelHandlerContext |
getNettyContext() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
public NettySecurityContext(io.netty.channel.ChannelHandlerContext ctx)
public io.netty.channel.ChannelHandlerContext getNettyContext()
public boolean isUserInRole(String role)
isUserInRole in interface SecurityContextpublic boolean isSecure()
isSecure in interface SecurityContextpublic Principal getUserPrincipal()
getUserPrincipal in interface SecurityContextpublic String getAuthenticationScheme()
getAuthenticationScheme in interface SecurityContextCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.