Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2002 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.portal.appflow.processor.security
Class Security

    java.lang.Object
      |
      +--com.bea.portal.appflow.processor.security.Security

public class Security
extends java.lang.Object

A helper class used by internal processors to provide common security functionality.

Constructor Summary
`Security()`

Method Summary
`static boolean` | `autoLoginEnabled(javax.servlet.http.HttpServletRequest request)` Return the boolean value of the servlet context parameter PORTAL_AUTO_LOGIN from the web.xml file.
`static boolean` | `autoLoginSet(javax.servlet.http.HttpServletRequest request)` Return a boolean value indicating if we can auto login the user.
`static int` | `getAutoLoginCookieTimeout(javax.servlet.http.HttpServletRequest request)` Get the autlogin cookie timeout from the web.xml context parameter or if one does not exist return the default value.
`static java.lang.String` | `getDefaultUserGroup(javax.servlet.http.HttpServletRequest request)` Get the default user group for self registration.
`static java.lang.String` | `getDefaultUserProfileType(javax.servlet.http.HttpServletRequest request)` Get the default user profile type for self registration.
`static int` | `getMaxPasswordLen(javax.servlet.http.HttpServletRequest request)` Get the maximum password length from the web.xml context parameter or if one does not exist return the default value.
`static int` | `getMaxUsernameLen(javax.servlet.http.HttpServletRequest request)` Get the maximum username length from the web.xml context parameter or if one does not exist return the default value.
`static int` | `getMinPasswordLen(javax.servlet.http.HttpServletRequest request)` Get the minimum password length from the web.xml context parameter or if one does not exist return the default value.
`static int` | `getMinUsernameLen(javax.servlet.http.HttpServletRequest request)` Get the minimum username length from the web.xml context parameter or if one does not exist return the default value.

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

Constructor Detail

### Security

    public Security()

Method Detail

### autoLoginSet

    public static boolean autoLoginSet(javax.servlet.http.HttpServletRequest request)

  Return a boolean value indicating if we can auto login the user. We can only auto login the user if the PORTAL_AUTO_LOGIN is set to true in the web.xml file and the user has selected that he/she wishes to persist the username and password on their local machine in the form of cookies, and finally that we have not already unsuccessfully tried.

### autoLoginEnabled

    public static boolean autoLoginEnabled(javax.servlet.http.HttpServletRequest request)

  Return the boolean value of the servlet context parameter PORTAL_AUTO_LOGIN from the web.xml file.

### getMinPasswordLen

    public static int getMinPasswordLen(javax.servlet.http.HttpServletRequest request)

  Get the minimum password length from the web.xml context parameter or if one does not exist return the default value.

### getMaxPasswordLen

    public static int getMaxPasswordLen(javax.servlet.http.HttpServletRequest request)

  Get the maximum password length from the web.xml context parameter or if one does not exist return the default value.

### getMinUsernameLen

    public static int getMinUsernameLen(javax.servlet.http.HttpServletRequest request)

  Get the minimum username length from the web.xml context parameter or if one does not exist return the default value.

### getMaxUsernameLen

    public static int getMaxUsernameLen(javax.servlet.http.HttpServletRequest request)

  Get the maximum username length from the web.xml context parameter or if one does not exist return the default value.

### getAutoLoginCookieTimeout

    public static int getAutoLoginCookieTimeout(javax.servlet.http.HttpServletRequest request)

  Get the autlogin cookie timeout from the web.xml context parameter or if one does not exist return the default value.

### getDefaultUserGroup

    public static java.lang.String getDefaultUserGroup(javax.servlet.http.HttpServletRequest request)

  Get the default user group for self registration. If the in servlet context parameter `PORTAL_DEFAULT_USER_GROUP` is defined in the web.xml the user's who self register will automaticvally be assigned to thsi group. If context parameter is defined then the self registered users will only be assigned to the `everyone` group by default.

  See Also:
    `UserProcessor`

### getDefaultUserProfileType

    public static java.lang.String getDefaultUserProfileType(javax.servlet.http.HttpServletRequest request)

  Get the default user profile type for self registration. If the in servlet context parameter `DEFAULT_USER_PROFILE_TYPE` is defined in the web.xml the user's who self register will automatically be assigned to this profile type. If the context parameter is not defined then the self registered users will only be assigned to the `User` profile by default.

  See Also:
    `UserProcessor`

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2002 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 BEA Systems, Inc. All Rights Reserved