Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
5765e4e6
提交
5765e4e6
authored
5月 22, 2018
作者:
mysinmyc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docu changes (marked experimental)
上级
3ff0e3ce
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
8 行删除
+13
-8
features.html
h2/src/docsrc/html/features.html
+5
-6
CredentialsValidator.java
h2/src/main/org/h2/api/CredentialsValidator.java
+3
-0
UserToRolesMapper.java
h2/src/main/org/h2/api/UserToRolesMapper.java
+3
-0
DefaultAuthenticator.java
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
+2
-2
没有找到文件。
h2/src/docsrc/html/features.html
浏览文件 @
5765e4e6
...
@@ -84,7 +84,7 @@ Features
...
@@ -84,7 +84,7 @@ Features
<a
href=
"#cache_settings"
>
<a
href=
"#cache_settings"
>
Cache Settings
</a><br
/>
Cache Settings
</a><br
/>
<a
href=
"#external_authentication"
>
<a
href=
"#external_authentication"
>
External Authentication
</a><br
/>
External Authentication
(Experimental)
</a><br
/>
<h2
id=
"feature_list"
>
Feature List
</h2>
<h2
id=
"feature_list"
>
Feature List
</h2>
<h3>
Main Features
</h3>
<h3>
Main Features
</h3>
...
@@ -1828,11 +1828,10 @@ To get information about page reads and writes, and the current caching algorith
...
@@ -1828,11 +1828,10 @@ To get information about page reads and writes, and the current caching algorith
call
<code>
SELECT * FROM INFORMATION_SCHEMA.SETTINGS
</code>
. The number of pages read / written
call
<code>
SELECT * FROM INFORMATION_SCHEMA.SETTINGS
</code>
. The number of pages read / written
is listed.
is listed.
</p>
</p>
<h2
id=
"external_authentication"
>
External authentication
</h2>
<h2
id=
"external_authentication"
>
External authentication
(Experimental)
</h2>
<p>
<p>
External authentication allows to optionally validate user credentials externally (JAAS,LDAP,custom classes).
External authentication allows to optionally validate user credentials externally (JAAS,LDAP,custom classes).
Is also possible to temporary assign roles to to externally authenticated users
Is also possible to temporary assign roles to to externally authenticated users.
<b>
This feature is experimental and subject to change
</b>
</p>
</p>
<p>
Master user cannot be externally authenticated
</p>
<p>
Master user cannot be externally authenticated
</p>
<p>
<p>
...
@@ -1896,11 +1895,11 @@ JVM argument <code>-Dh2auth.configurationFile={urlOfH2Auth.xml}</code>. Here an
...
@@ -1896,11 +1895,11 @@ JVM argument <code>-Dh2auth.configurationFile={urlOfH2Auth.xml}</code>. Here an
</pre>
</pre>
<p>
<p>
Custom credentials validators must implement the interface
Custom credentials validators must implement the interface
<code>
org.h2.
security.auth
.CredentialsValidator
</code>
<code>
org.h2.
api
.CredentialsValidator
</code>
</p>
</p>
<p>
<p>
Custom criteria for role assignments must implement the interface
Custom criteria for role assignments must implement the interface
<code>
org.h2.
security.auth
.UserToRoleMapper
</code>
<code>
org.h2.
api
.UserToRoleMapper
</code>
</p>
</p>
<!-- [close] { -->
</div></td></tr></table>
<!-- } --><!-- analytics -->
</body></html>
<!-- [close] { -->
</div></td></tr></table>
<!-- } --><!-- analytics -->
</body></html>
...
...
h2/src/main/org/h2/api/CredentialsValidator.java
浏览文件 @
5765e4e6
...
@@ -11,6 +11,9 @@ import org.h2.security.auth.Configurable;
...
@@ -11,6 +11,9 @@ import org.h2.security.auth.Configurable;
/**
/**
* A class that implement this interface can be used to validate
* A class that implement this interface can be used to validate
* credentials provided by client.
* credentials provided by client.
* <p>
* <b>This feature is experimental and subject to change</b>
* </p>
*/
*/
public
interface
CredentialsValidator
extends
Configurable
{
public
interface
CredentialsValidator
extends
Configurable
{
...
...
h2/src/main/org/h2/api/UserToRolesMapper.java
浏览文件 @
5765e4e6
...
@@ -15,6 +15,9 @@ import org.h2.security.auth.Configurable;
...
@@ -15,6 +15,9 @@ import org.h2.security.auth.Configurable;
/**
/**
* A class that implement this interface can be used during
* A class that implement this interface can be used during
* authentication to map external users to database roles.
* authentication to map external users to database roles.
* <p>
* <b>This feature is experimental and subject to change</b>
* </p>
*/
*/
public
interface
UserToRolesMapper
extends
Configurable
{
public
interface
UserToRolesMapper
extends
Configurable
{
...
...
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
浏览文件 @
5765e4e6
...
@@ -34,14 +34,14 @@ import org.h2.util.StringUtils;
...
@@ -34,14 +34,14 @@ import org.h2.util.StringUtils;
* <p>
* <p>
* When client connectionInfo contains property AUTHREALM={realName} credentials
* When client connectionInfo contains property AUTHREALM={realName} credentials
* (typically user id and password) are validated by
* (typically user id and password) are validated by
* by {@link org.h2.
security.auth
.CredentialsValidator} configured for that realm.
* by {@link org.h2.
api
.CredentialsValidator} configured for that realm.
* </p>
* </p>
* <p>
* <p>
* When client connectionInfo doesn't contains AUTHREALM property credentials
* When client connectionInfo doesn't contains AUTHREALM property credentials
* are validated internally on the database
* are validated internally on the database
* </p>
* </p>
* <p>
* <p>
* Rights assignment can be managed through {@link org.h2.
security.auth
.UserToRolesMapper}
* Rights assignment can be managed through {@link org.h2.
api
.UserToRolesMapper}
* </p>
* </p>
* <p>
* <p>
* Default configuration has a realm H2 that validate credentials through JAAS api (appName=h2).
* Default configuration has a realm H2 that validate credentials through JAAS api (appName=h2).
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论