public interface SubjectSecurityContext
extends javax.ws.rs.core.SecurityContext
ContainerRequest.setSecurityContext(javax.ws.rs.core.SecurityContext).
When Jersey detects this kind of context is in the request scope,
it will use doAsSubject(java.security.PrivilegedAction) method to
dispatch the request to a resource method (or to call a sub-resource locator).| Modifier and Type | Method and Description |
|---|---|
Object |
doAsSubject(PrivilegedAction action)
Jersey wraps calls to resource methods and sub-resource locators in
PrivilegedAction instance and passes it to this method when
dispatching a request. |
Object doAsSubject(PrivilegedAction action)
PrivilegedAction instance and passes it to this method when
dispatching a request. Implementations should do the needful to establish
a Subject and invoke the PrivilegedAction
passed as the parameter using Subject.doAs(javax.security.auth.Subject, java.security.PrivilegedAction).action - - PrivilegedAction to be executed by this method after
establishing a subject.Copyright © 2014 Oracle Corporation. All rights reserved.