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 SecurityContext
public boolean isSecure()
isSecure
in interface SecurityContext
public Principal getUserPrincipal()
getUserPrincipal
in interface SecurityContext
public String getAuthenticationScheme()
getAuthenticationScheme
in interface SecurityContext
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.