Apache Shiro 1.2.x Reference Manual 中文翻译Management 9. Cryptography 密码 III. Web Applications 10. Web 10.1. Configuration 配置 10.2. 基于路径的 url 安全 10.3. Default Filters 默认过滤器 10.4. Session Management 10.5. JSP Tag Library IV. Auxiliary Support 根目录里。这个执行动作反映出 shiro 支持 Factory Method Design Pattern(工厂模式)。classpath:资源的指示前缀,告诉 shiro 从哪里加载 ini 文件(其 它前缀,如 url:和 file: 也被支持)。 2.factory.getInstance() 方法被调用,该方法分析 INI 文件并根据配置文件返回一个 SecurityManager 实例。 3.在这个简单示例中,我们将 从INI资源创建 SecurityManager 我们可以从一个INI资源路径创建一个 SecurityManager 实例,资源可以通过文件系统(前缀 为file:)、类路径(classpath:)或者URL(url:)获得,下面的例子使用一个 Factory 从类路径根目 录加载 shiro.ini 并返回一个 SecurityManager 实例。 import org.apache.shiro.SecurityUtils;0 码力 | 196 页 | 2.34 MB | 1 年前3
Apache Shiro参考手册中文版文件,它位于 classpath 的根目录。该实现反 映了 Shiro 对工厂设计模式的支持。classpath: 前缀是一个资源定位符,用来告诉 shiro 去哪加载 ini 文件(其 他前缀,如 url:和 file:也同样被支持)。 2. factory.getInstance()方法被调用,它来解析 INI 文件并返回反映该配置的 SecurityManager 实例。 3. 在这个简单的例子中,我们把 resource 我们能够从一个 INI 资源路径创建 SecurityManager 实例。我们可以从文件系统,classpath,或分别拥有前缀 file:, classpath:,或 url:的 URL 中获取资源。本例采用 Factory 提取 classpath 根目录下的 shiro.ini 文件并返回 SecurityManager 实例: SecurityManager Brittle Security 虽然有比较简单和最常用的方法,隐式角色可能强加许多软件的维护和管理问题。 例如,如果你只是想添加或删除一个角色,或者重新定义一个角色的行为呢?你不得不返回到你的代码,并改写所 有你所有的角色检查以反映你的安全模型的改变,每次像这样的改变都是必不可少的!且不说这会招致运营成本(重 新测试,经过 QA,关闭应用程序,新的角色下检查升级软件,重启该应用程序等)。 这对非常0 码力 | 92 页 | 1.16 MB | 1 年前3
Java 应用与开发 - Java GUI 编程setLayout() 方法,这些重写后的方法将针对 JFrame 的添加组件、移除组件和设置布局管理器等操作自动转 发给其内容面板 contentPane,以实现对 contentPane 的直接控 制。 对上述代码的改写: 1 JFrame jf = new JFrame("My␣Test"); 2 jf.setLayout(new FlowLayout(FlowLayout.LEFT, 20, 20)); 30 码力 | 73 页 | 876.31 KB | 1 年前3
《Java 应用与开发》课程讲义 - 王晓东. . . . 241 19.2 URL 重写 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 19.2.1 URL 重写实现会话跟踪的方法 . . . . . . . . . . . . . . . . . . . . 242 19.2.2 URL 重写的缺点 . . . . . . 1 系统属性概述 • 记录当前操作系统和 JVM 等相关的环境信息。 • 以键值对的形式存在,由属性名称、属性值两部分组成。 • 均为字符串形式。 系统属性的用途主要包括: 系统属性在 URL 网络编程、数据库编程和 Java Mail 邮件收发等编程中经常使用, 一般被用来设置代理服务器、指定数据库的驱动程序类等。 除了使用代码方法外,也可使用命令在运行程序时添加新的系统属性: 1 方法,这些重写后的方法将针对 JFrame 的添加组件、移除组件和设置布局管理器等操 作自动转发给其内容面板 contentPane,以实现对 contentPane 的直接控制。 对上述代码的改写: 1 JFrame jf = new JFrame(”My Test”); 2 jf .setLayout(new FlowLayout(FlowLayout.LEFT, 20, 20));0 码力 | 330 页 | 6.54 MB | 1 年前3
Nacos架构&原理
Nacos 上创建⼀个配置时, 如果未填写配置分组的名称,则配置分组的名称默认采用 DEFAULT_GROUP 。配置分组的常见场 景:不同的应用或组件使用了相同的配置项,如 database_url 配置和 MQ_Topic 配置。 配置 ID(Data ID) Nacos 中的某个配置集的 ID。配置集 ID 是划分配置的维度之⼀。Data ID 通常用于划分系统的配 置集。⼀个系统或 compareAndSet(false, true)) { String url = InetUtils.getSelfIp() + ":" + ApplicationUtils.getPort(); afterLookup(MemberUtils.readServerConf(Collections.singletonList(url))); } } } 文件寻址 com.alibaba.nacos LDAP,后续让社区贡献,如 SMAL。 Nacos 架构 < 114 UI 设计 登录成功之后,右上角显示登录用户名,和退出按钮。 点击退出,这个 session 失效。 接口设计 接口信息: 接口描述 接口 url(暂定) 接口操作类型 参数 登录接口 /auth/login POST username=xx&password=xx form 格式 退出接口 /auth/logout GET 无 1150 码力 | 326 页 | 12.83 MB | 10 月前3
Apache ActiveMQ Artemis 2.11.0 User Manuale. LoggingActiveMQServerPlugin ). Option to use OpenSSL provider for Netty via the sslProvider URL parameter. Enable splitting of broker.xml into multiple files. Enhanced message count and size metrics 1.x clients needs to have anycastPrefix=jms.queue.;multicastPrefix=jms.topic. in the acceptor url. This prefix used to be configured automatically behind the scenes when the broker detected these remove the Jolokia war file from the web element in/etc/bootstrap.xml : url="jolokia" war="jolokia.war"/> This is no longer required as the Jolokia REST interface is now integrated 0 码力 | 341 页 | 4.93 MB | 1 年前3
Apache ActiveMQ Artemis 2.22.0 User ManualSubject Alternative Name values of the broker's SSL certificate to match the hostname in the client's URL. This impacts all core-based clients including core JMS clients and core connections between cluster following: Update your SSL certificates to use a hostname which matches the hostname in the client's URL. This is the recommended option with regard to security. Update any connector using sslEnabled=true acceptor which has the problem. The CLI will now read the broker.xml to find the default connector URL for commands which require it (e.g. consumer , producer , etc.) 2.11.0 Versions 15 Full release0 码力 | 502 页 | 6.34 MB | 1 年前3
Apache ActiveMQ Artemis 2.21.0 User ManualSubject Alternative Name values of the broker's SSL certificate to match the hostname in the client's URL. This impacts all core-based clients including core JMS clients and core connections between cluster following: Update your SSL certificates to use a hostname which matches the hostname in the client's URL. This is the recommended option with regard to security. Update any connector using sslEnabled=true acceptor which has the problem. The CLI will now read the broker.xml to find the default connector URL for commands which require it (e.g. consumer , producer , etc.) 2.11.0 Full release notes. Highlights:0 码力 | 503 页 | 6.34 MB | 1 年前3
Apache ActiveMQ Artemis 2.23.1 User ManualSubject Alternative Name values of the broker's SSL certificate to match the hostname in the client's URL. This impacts all core-based clients including core JMS clients and core connections between cluster following: Update your SSL certificates to use a hostname which matches the hostname in the client's URL. This is the recommended option with regard to security. Update any connector using sslEnabled=true acceptor which has the problem. The CLI will now read the broker.xml to find the default connector URL for commands which require it (e.g. consumer , producer , etc.) 2.11.0 Versions 16 Full release0 码力 | 503 页 | 6.35 MB | 1 年前3
Apache ActiveMQ Artemis 2.10.0 User Manuale. LoggingActiveMQServerPlugin ). Option to use OpenSSL provider for Netty via the sslProvider URL parameter. Enable splitting of broker.xml into multiple files. Enhanced message count and size metrics 1.x clients needs to have anycastPrefix=jms.queue.;multicastPrefix=jms.topic. in the acceptor url. This prefix used to be configured automatically behind the scenes when the broker detected these remove the Jolokia war file from the web element in/etc/bootstrap.xml : url="jolokia" war="jolokia.war"/> This is no longer required as the Jolokia REST interface is now integrated 0 码力 | 322 页 | 4.85 MB | 1 年前3
共 390 条
- 1
- 2
- 3
- 4
- 5
- 6
- 39













