Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.wlp.rest.command
Class LoginRequired

    java.lang.Object
      com.bea.wlp.rest.command.LoginRequired

All Implemented Interfaces
  MethodPermission

    public class LoginRequired

extends Object
implements MethodPermission

`MethodPermission` implementation that checks to see if the request is associated with an authenticated user.

Constructor Summary
`LoginRequired()`

Method Summary
`boolean` | `isEnabled(RestContext restContext)` Returns true if there is an existing `UserPrincipal` associated with the current `HttpServletRequest`.

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

Constructor Detail

### LoginRequired

    public LoginRequired()

Method Detail

### isEnabled

    public boolean isEnabled(RestContext restContext)

  Returns true if there is an existing `UserPrincipal` associated with the current `HttpServletRequest`.

  Specified by:
    `isEnabled` in interface `MethodPermission`
  Parameters
    `restContext` - the incoming `RestContext`
  Returns
    true if there is a logged in user, false otherwise

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

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.