|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.plugins.server.servlet.ServletSecurityContext
public class ServletSecurityContext
| Field Summary |
|---|
| Fields inherited from interface javax.ws.rs.core.SecurityContext |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
ServletSecurityContext(javax.servlet.http.HttpServletRequest request)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthenticationScheme()
Returns the string value of the authentication scheme used to protect the resource. |
java.security.Principal |
getUserPrincipal()
Returns a java.security.Principal object containing the
name of the current authenticated user. |
boolean |
isSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
boolean |
isUserInRole(java.lang.String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletSecurityContext(javax.servlet.http.HttpServletRequest request)
| Method Detail |
|---|
public java.security.Principal getUserPrincipal()
SecurityContextjava.security.Principal object containing the
name of the current authenticated user. If the user
has not been authenticated, the method returns null.
getUserPrincipal in interface SecurityContextjava.security.Principal containing the name
of the user making this request; null if the user has not been
authenticatedpublic boolean isUserInRole(java.lang.String role)
SecurityContextfalse.
isUserInRole in interface SecurityContextrole - a String specifying the name of the role
boolean indicating whether the user making
the request belongs to a given role; false if the user
has not been authenticatedpublic boolean isSecure()
SecurityContext
isSecure in interface SecurityContexttrue if the request was made using a secure
channel, false otherwisepublic java.lang.String getAuthenticationScheme()
SecurityContext
getAuthenticationScheme in interface SecurityContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||