org.glassfish.jersey.examples.httpsclientservergrizzly
Class SecurityFilter.Authorizer
java.lang.Object
org.glassfish.jersey.examples.httpsclientservergrizzly.SecurityFilter.Authorizer
- All Implemented Interfaces:
- javax.ws.rs.core.SecurityContext
- Enclosing class:
- SecurityFilter
public class SecurityFilter.Authorizer
- extends Object
- implements javax.ws.rs.core.SecurityContext
| Fields inherited from interface javax.ws.rs.core.SecurityContext |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityFilter.Authorizer
public SecurityFilter.Authorizer(SecurityFilter.User user)
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal in interface javax.ws.rs.core.SecurityContext
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole in interface javax.ws.rs.core.SecurityContext
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
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.