Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.jcr.api
Class ServletCredentials

    java.lang.Object
      org.modeshape.jcr.api.ServletCredentials

All Implemented Interfaces:
  Serializable, Credentials

    public class ServletCredentials

extends Object
implements Credentials

A `Credentials` implementation that assumes servlet-based authentication and provides authorization through the `servlet role-checking mechanism`.

These credentials are really only valid for the life of the `servlet request`, and thus should be used to obtain a Session for each request.

Note that this class can only be used if the `HttpServletRequest` class is on the classpath.

See Also:
  Serialized Form

Constructor Summary
`ServletCredentials(javax.servlet.http.HttpServletRequest request)` Create a `Credentials` using the supplied `servlet information`.

Method Summary
`javax.servlet.http.HttpServletRequest` | `getRequest()` Get the Servlet request that this credentials applies to.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ServletCredentials

    public ServletCredentials(javax.servlet.http.HttpServletRequest request)

  Create a `Credentials` using the supplied `servlet information`.

  Parameters:
    `request` - the servlet request

Method Detail

### getRequest

    public javax.servlet.http.HttpServletRequest getRequest()

  Get the Servlet request that this credentials applies to.

  Returns:
    the request, or null if this credentials is no longer valid

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.