当前位置: 首页>>代码示例>>Java>>正文


Java CommonHelper.areEquals方法代码示例

本文整理汇总了Java中org.pac4j.core.util.CommonHelper.areEquals方法的典型用法代码示例。如果您正苦于以下问题:Java CommonHelper.areEquals方法的具体用法?Java CommonHelper.areEquals怎么用?Java CommonHelper.areEquals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pac4j.core.util.CommonHelper的用法示例。


在下文中一共展示了CommonHelper.areEquals方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: retrieveCredentials

import org.pac4j.core.util.CommonHelper; //导入方法依赖的package包/类
@Override
protected OpenIdCredentials retrieveCredentials(final WebContext context) throws HttpAction {
    final String mode = context.getRequestParameter(OPENID_MODE);
    // cancelled authentication
    if (CommonHelper.areEquals(mode, CANCEL_MODE)) {
        logger.debug("authentication cancelled");
        return null;
    }

    // parameters list returned by the provider
    final ParameterList parameterList = new ParameterList(context.getRequestParameters());

    // retrieve the previously stored discovery information
    final DiscoveryInformation discoveryInformation = (DiscoveryInformation) context
            .getSessionAttribute(getDiscoveryInformationSessionAttributeName());

    // create credentials
    final OpenIdCredentials credentials = new OpenIdCredentials(discoveryInformation, parameterList, getName());
    logger.debug("credentials: {}", credentials);
    return credentials;
}
 
开发者ID:yaochi,项目名称:pac4j-plus,代码行数:22,代码来源:BaseOpenIdClient.java

示例2: getCookie

import org.pac4j.core.util.CommonHelper; //导入方法依赖的package包/类
/**
 * Get a specific cookie by its name.
 *
 * @param cookies provided cookies
 * @param name the name of the cookie
 * @return the cookie
 */
public static Cookie getCookie(final Collection<Cookie> cookies, final String name) {
    if (cookies != null) {
        for (final Cookie cookie : cookies) {
            if (cookie != null && CommonHelper.areEquals(name, cookie.getName())) {
                return cookie;
            }
        }
    }
    return null;
}
 
开发者ID:millross,项目名称:pac4j-async,代码行数:18,代码来源:ContextHelper.java

示例3: matches

import org.pac4j.core.util.CommonHelper; //导入方法依赖的package包/类
@Override
public boolean matches(final String plainPassword, final String encodedPassword) {
    return CommonHelper.areEquals(plainPassword, encodedPassword);
}
 
开发者ID:yaochi,项目名称:pac4j-plus,代码行数:5,代码来源:NopPasswordEncoder.java

示例4: matches

import org.pac4j.core.util.CommonHelper; //导入方法依赖的package包/类
@Override
public boolean matches(final String plainPassword, final String encodedPassword) {
    CommonHelper.assertNotBlank("salt", salt);

    return CommonHelper.areEquals(encode(plainPassword), encodedPassword);
}
 
开发者ID:yaochi,项目名称:pac4j-plus,代码行数:7,代码来源:BasicSaltedSha512PasswordEncoder.java


注:本文中的org.pac4j.core.util.CommonHelper.areEquals方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。