热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.jboss.security.auth.login.AuthenticationInfo.setAppConfigurationEntry()方法的使用及代码示例

本文整理了Java中org.jboss.security.auth.login.AuthenticationInfo.setAppConfigurationEntry()

本文整理了Java中org.jboss.security.auth.login.AuthenticationInfo.setAppConfigurationEntry()方法的一些代码示例,展示了AuthenticationInfo.setAppConfigurationEntry()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthenticationInfo.setAppConfigurationEntry()方法的具体详情如下:
包路径:org.jboss.security.auth.login.AuthenticationInfo
类名称:AuthenticationInfo
方法名:setAppConfigurationEntry

AuthenticationInfo.setAppConfigurationEntry介绍

[英]Set an application authentication configuration. This requires an AuthPermission("setLoginConfiguration") access.
[中]设置应用程序身份验证配置。这需要AuthPermission(“SetLoginConConfiguration”)访问权限。

代码示例

代码示例来源:origin: org.picketbox/picketbox

/** Parse the application-policy/authentication element
@param policy , the application-policy/authentication element
@return the AuthenticationInfo object for the xml policy fragment
*/
@SuppressWarnings("unchecked")
static public AuthenticationInfo parseAuthentication(Element policy)
throws Exception
{
// Parse the permissions
NodeList authentication = policy.getElementsByTagName("authentication");
if (authentication.getLength() == 0)
{
return null;
}
Element auth = (Element) authentication.item(0);
NodeList modules = auth.getElementsByTagName("login-module");
ArrayList tmp = new ArrayList();
for (int n = 0; n {
Element module = (Element) modules.item(n);
parseModule(module, tmp);
}
AppConfigurationEntry[] entries = new AppConfigurationEntry[tmp.size()];
tmp.toArray(entries);
AuthenticationInfo info = new AuthenticationInfo();
info.setAppConfigurationEntry(entries);
return info;
}

代码示例来源:origin: org.jboss.security/jbosssx-bare

/** Parse the application-policy/authentication element
@param policy , the application-policy/authentication element
@return the AuthenticationInfo object for the xml policy fragment
*/
@SuppressWarnings("unchecked")
static public AuthenticationInfo parseAuthentication(Element policy)
throws Exception
{
// Parse the permissions
NodeList authentication = policy.getElementsByTagName("authentication");
if (authentication.getLength() == 0)
{
return null;
}
Element auth = (Element) authentication.item(0);
NodeList modules = auth.getElementsByTagName("login-module");
ArrayList tmp = new ArrayList();
for (int n = 0; n {
Element module = (Element) modules.item(n);
parseModule(module, tmp);
}
AppConfigurationEntry[] entries = new AppConfigurationEntry[tmp.size()];
tmp.toArray(entries);
AuthenticationInfo info = new AuthenticationInfo();
info.setAppConfigurationEntry(entries);
return info;
}

代码示例来源:origin: org.jboss.security/jbosssx-bare

/**
* Add an application configuration
*/
public void addAppConfig(String appName, AppConfigurationEntry[] entries)
{
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPermission(REFRESH_PERM);
AuthenticationInfo authInfo = new AuthenticationInfo(appName);
authInfo.setAppConfigurationEntry(entries);
if (log.isTraceEnabled())
log.trace("addAppConfig(" + appName + "), authInfo=" + authInfo);
ApplicationPolicy aPolicy = new ApplicationPolicy(appName, authInfo);
appConfigs.add(aPolicy);
SecurityConfiguration.addApplicationPolicy(aPolicy);
}

代码示例来源:origin: org.jboss.security/jboss-idtrust-config

public BaseAuthenticationInfo map(String name,
org.jboss.security.config.jaxb.AuthenticationInfo authenticationInfo)
{
AuthenticationInfo baseInfo = new AuthenticationInfo(name);
baseInfo.setAppConfigurationEntry(map(authenticationInfo.getLoginModule()));
return baseInfo;
}

代码示例来源:origin: org.jboss.security/jboss-idtrust

public BaseAuthenticationInfo map(String name,
org.jboss.security.config.jaxb.AuthenticationInfo authenticationInfo)
{
AuthenticationInfo baseInfo = new AuthenticationInfo(name);
baseInfo.setAppConfigurationEntry(map(authenticationInfo.getLoginModule()));
return baseInfo;
}

代码示例来源:origin: org.picketbox/picketbox

/**
* Add an application configuration
*/
public void addAppConfig(String appName, AppConfigurationEntry[] entries)
{
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPermission(REFRESH_PERM);
AuthenticationInfo authInfo = new AuthenticationInfo(appName);
authInfo.setAppConfigurationEntry(entries);
if (PicketBoxLogger.LOGGER.isTraceEnabled())
{
PicketBoxLogger.LOGGER.traceAddAppConfig(appName, authInfo.toString());
}
ApplicationPolicy aPolicy = new ApplicationPolicy(appName, authInfo);
appConfigs.add(aPolicy);
SecurityConfiguration.addApplicationPolicy(aPolicy);
}

代码示例来源:origin: org.picketbox/picketbox

AuthenticationInfo authInfo = new AuthenticationInfo(appPolicy.getName());
authInfo.setAppConfigurationEntry(new ArrayList(entries));
appPolicy.setAuthenticationInfo(authInfo);

代码示例来源:origin: org.picketbox/picketbox

Set entries = parser.parse(reader);
AuthenticationInfo authInfo = new AuthenticationInfo(appPolicy.getName());
authInfo.setAppConfigurationEntry(new ArrayList(entries));
appPolicy.setAuthenticationInfo(authInfo);
break;

推荐阅读
  • Java序列化对象传给PHP的方法及原理解析
    本文介绍了Java序列化对象传给PHP的方法及原理,包括Java对象传递的方式、序列化的方式、PHP中的序列化用法介绍、Java是否能反序列化PHP的数据、Java序列化的原理以及解决Java序列化中的问题。同时还解释了序列化的概念和作用,以及代码执行序列化所需要的权限。最后指出,序列化会将对象实例的所有字段都进行序列化,使得数据能够被表示为实例的序列化数据,但只有能够解释该格式的代码才能够确定数据的内容。 ... [详细]
  • Iamtryingtomakeaclassthatwillreadatextfileofnamesintoanarray,thenreturnthatarra ... [详细]
  • Java容器中的compareto方法排序原理解析
    本文从源码解析Java容器中的compareto方法的排序原理,讲解了在使用数组存储数据时的限制以及存储效率的问题。同时提到了Redis的五大数据结构和list、set等知识点,回忆了作者大学时代的Java学习经历。文章以作者做的思维导图作为目录,展示了整个讲解过程。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • 本文详细介绍了Java中vector的使用方法和相关知识,包括vector类的功能、构造方法和使用注意事项。通过使用vector类,可以方便地实现动态数组的功能,并且可以随意插入不同类型的对象,进行查找、插入和删除操作。这篇文章对于需要频繁进行查找、插入和删除操作的情况下,使用vector类是一个很好的选择。 ... [详细]
  • Java太阳系小游戏分析和源码详解
    本文介绍了一个基于Java的太阳系小游戏的分析和源码详解。通过对面向对象的知识的学习和实践,作者实现了太阳系各行星绕太阳转的效果。文章详细介绍了游戏的设计思路和源码结构,包括工具类、常量、图片加载、面板等。通过这个小游戏的制作,读者可以巩固和应用所学的知识,如类的继承、方法的重载与重写、多态和封装等。 ... [详细]
  • VScode格式化文档换行或不换行的设置方法
    本文介绍了在VScode中设置格式化文档换行或不换行的方法,包括使用插件和修改settings.json文件的内容。详细步骤为:找到settings.json文件,将其中的代码替换为指定的代码。 ... [详细]
  • SpringBoot uri统一权限管理的实现方法及步骤详解
    本文详细介绍了SpringBoot中实现uri统一权限管理的方法,包括表结构定义、自动统计URI并自动删除脏数据、程序启动加载等步骤。通过该方法可以提高系统的安全性,实现对系统任意接口的权限拦截验证。 ... [详细]
  • 向QTextEdit拖放文件的方法及实现步骤
    本文介绍了在使用QTextEdit时如何实现拖放文件的功能,包括相关的方法和实现步骤。通过重写dragEnterEvent和dropEvent函数,并结合QMimeData和QUrl等类,可以轻松实现向QTextEdit拖放文件的功能。详细的代码实现和说明可以参考本文提供的示例代码。 ... [详细]
  • 本文分享了一个关于在C#中使用异步代码的问题,作者在控制台中运行时代码正常工作,但在Windows窗体中却无法正常工作。作者尝试搜索局域网上的主机,但在窗体中计数器没有减少。文章提供了相关的代码和解决思路。 ... [详细]
  • 本文介绍了一个Java猜拳小游戏的代码,通过使用Scanner类获取用户输入的拳的数字,并随机生成计算机的拳,然后判断胜负。该游戏可以选择剪刀、石头、布三种拳,通过比较两者的拳来决定胜负。 ... [详细]
  • 开发笔记:加密&json&StringIO模块&BytesIO模块
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了加密&json&StringIO模块&BytesIO模块相关的知识,希望对你有一定的参考价值。一、加密加密 ... [详细]
  • 本文讨论了如何优化解决hdu 1003 java题目的动态规划方法,通过分析加法规则和最大和的性质,提出了一种优化的思路。具体方法是,当从1加到n为负时,即sum(1,n)sum(n,s),可以继续加法计算。同时,还考虑了两种特殊情况:都是负数的情况和有0的情况。最后,通过使用Scanner类来获取输入数据。 ... [详细]
  • 本文介绍了在Java中gt、gtgt、gtgtgt和lt之间的区别。通过解释符号的含义和使用例子,帮助读者理解这些符号在二进制表示和移位操作中的作用。同时,文章还提到了负数的补码表示和移位操作的限制。 ... [详细]
author-avatar
杨芷寻找最真的自己
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有