DEPRECATED com.bea.portal is only useful in the compatibility domain. For the new portal framework please use the classes under the com.bea.netuix package

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

public class Security
extends `Object`

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

Hierarchy
  `Object`
  `Security`

## Constructor Summary

Security()

## Method Summary

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

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

## Constructor Detail

### Security

    public Security()

## Method Detail

### autoLoginEnabled(HttpServletRequest) Method

    public static boolean autoLoginEnabled(HttpServletRequest request)

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

### autoLoginSet(HttpServletRequest) Method

    public static boolean autoLoginSet(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.

### getAutoLoginCookieTimeout(HttpServletRequest) Method

    public static int getAutoLoginCookieTimeout(HttpServletRequest request)

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

### getDefaultUserGroup(HttpServletRequest) Method

    public static String getDefaultUserGroup(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.

Related Topics

``UserProcessor``

### getDefaultUserProfileType(HttpServletRequest) Method

    public static String getDefaultUserProfileType(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.

Related Topics

``UserProcessor``

### getMaxPasswordLen(HttpServletRequest) Method

    public static int getMaxPasswordLen(HttpServletRequest request)

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

### getMaxUsernameLen(HttpServletRequest) Method

    public static int getMaxUsernameLen(HttpServletRequest request)

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

### getMinPasswordLen(HttpServletRequest) Method

    public static int getMinPasswordLen(HttpServletRequest request)

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

### getMinUsernameLen(HttpServletRequest) Method

    public static int getMinUsernameLen(HttpServletRequest request)

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