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.
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 |
LoginRequired
public LoginRequired()
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
Copyright © 2000, 2008, 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.