Example usage for com.liferay.portal.kernel.util PortalUtil getUserPassword

List of usage examples for com.liferay.portal.kernel.util PortalUtil getUserPassword

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PortalUtil getUserPassword.

Prototype

public static String getUserPassword(PortletRequest portletRequest) 

Source Link

Usage

From source file:com.liferay.iframe.web.internal.util.IFrameUtil.java

License:Open Source License

public static String getPassword(PortletRequest portletRequest, String password) throws PortalException {

    if (Validator.isNotNull(password) && password.equals("@password@")) {
        if (isPasswordTokenResolutionEnabled(portletRequest)) {
            password = PortalUtil.getUserPassword(portletRequest);
        }//from  ww  w.  j  ava  2 s  .c  o m
    }

    if (password == null) {
        password = StringPool.BLANK;
    }

    return password;
}