Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
72e7f15f
提交
72e7f15f
authored
5月 23, 2018
作者:
mysinmyc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
private modifier
上级
316b5a95
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
29 行增加
和
29 行删除
+29
-29
AuthenticationInfo.java
h2/src/main/org/h2/security/auth/AuthenticationInfo.java
+3
-3
ConfigProperties.java
h2/src/main/org/h2/security/auth/ConfigProperties.java
+1
-1
DefaultAuthenticator.java
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
+7
-7
H2AuthConfig.java
h2/src/main/org/h2/security/auth/H2AuthConfig.java
+1
-1
PropertyConfig.java
h2/src/main/org/h2/security/auth/PropertyConfig.java
+2
-2
RealmConfig.java
h2/src/main/org/h2/security/auth/RealmConfig.java
+1
-1
UserToRolesMapperConfig.java
...rc/main/org/h2/security/auth/UserToRolesMapperConfig.java
+2
-2
AssignRealmNameRole.java
...c/main/org/h2/security/auth/impl/AssignRealmNameRole.java
+1
-1
JaasCredentialsValidator.java
...n/org/h2/security/auth/impl/JaasCredentialsValidator.java
+1
-1
LdapCredentialsValidator.java
...n/org/h2/security/auth/impl/LdapCredentialsValidator.java
+5
-5
StaticRolesMapper.java
h2/src/main/org/h2/security/auth/impl/StaticRolesMapper.java
+1
-1
StaticUserCredentialsValidator.java
...h2/security/auth/impl/StaticUserCredentialsValidator.java
+4
-4
没有找到文件。
h2/src/main/org/h2/security/auth/AuthenticationInfo.java
浏览文件 @
72e7f15f
...
@@ -13,11 +13,11 @@ import org.h2.util.StringUtils;
...
@@ -13,11 +13,11 @@ import org.h2.util.StringUtils;
*/
*/
public
class
AuthenticationInfo
{
public
class
AuthenticationInfo
{
ConnectionInfo
connectionInfo
;
private
ConnectionInfo
connectionInfo
;
String
password
;
private
String
password
;
String
realm
;
private
String
realm
;
/*
/*
* Can be used by authenticator to hold informations
* Can be used by authenticator to hold informations
...
...
h2/src/main/org/h2/security/auth/ConfigProperties.java
浏览文件 @
72e7f15f
...
@@ -17,7 +17,7 @@ import org.h2.util.Utils;
...
@@ -17,7 +17,7 @@ import org.h2.util.Utils;
*/
*/
public
class
ConfigProperties
{
public
class
ConfigProperties
{
Map
<
String
,
String
>
properties
;
private
Map
<
String
,
String
>
properties
;
public
ConfigProperties
()
{
public
ConfigProperties
()
{
properties
=
new
HashMap
<>();
properties
=
new
HashMap
<>();
...
...
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
浏览文件 @
72e7f15f
...
@@ -52,19 +52,19 @@ public class DefaultAuthenticator implements Authenticator {
...
@@ -52,19 +52,19 @@ public class DefaultAuthenticator implements Authenticator {
public
static
final
String
DEFAULT_REALMNAME
=
"H2"
;
public
static
final
String
DEFAULT_REALMNAME
=
"H2"
;
Map
<
String
,
CredentialsValidator
>
realms
=
new
HashMap
<>();
private
Map
<
String
,
CredentialsValidator
>
realms
=
new
HashMap
<>();
List
<
UserToRolesMapper
>
userToRolesMappers
=
new
ArrayList
<>();
private
List
<
UserToRolesMapper
>
userToRolesMappers
=
new
ArrayList
<>();
boolean
allowUserRegistration
;
private
boolean
allowUserRegistration
;
boolean
persistUsers
;
private
boolean
persistUsers
;
boolean
createMissingRoles
;
private
boolean
createMissingRoles
;
boolean
skipDefaultInitialization
;
private
boolean
skipDefaultInitialization
;
boolean
initialized
;
private
boolean
initialized
;
private
static
final
DefaultAuthenticator
INSTANCE
=
new
DefaultAuthenticator
();
private
static
final
DefaultAuthenticator
INSTANCE
=
new
DefaultAuthenticator
();
...
...
h2/src/main/org/h2/security/auth/H2AuthConfig.java
浏览文件 @
72e7f15f
...
@@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlRootElement;
public
class
H2AuthConfig
{
public
class
H2AuthConfig
{
@XmlAttribute
@XmlAttribute
boolean
allowUserRegistration
=
true
;
private
boolean
allowUserRegistration
=
true
;
public
boolean
isAllowUserRegistration
()
{
public
boolean
isAllowUserRegistration
()
{
return
allowUserRegistration
;
return
allowUserRegistration
;
...
...
h2/src/main/org/h2/security/auth/PropertyConfig.java
浏览文件 @
72e7f15f
...
@@ -16,10 +16,10 @@ import javax.xml.bind.annotation.XmlAttribute;
...
@@ -16,10 +16,10 @@ import javax.xml.bind.annotation.XmlAttribute;
public
class
PropertyConfig
{
public
class
PropertyConfig
{
@XmlAttribute
(
required
=
true
)
@XmlAttribute
(
required
=
true
)
String
name
;
private
String
name
;
@XmlAttribute
@XmlAttribute
String
value
;
private
String
value
;
public
PropertyConfig
()
{
public
PropertyConfig
()
{
}
}
...
...
h2/src/main/org/h2/security/auth/RealmConfig.java
浏览文件 @
72e7f15f
...
@@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlElement;
...
@@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlElement;
public
class
RealmConfig
{
public
class
RealmConfig
{
@XmlAttribute
(
required
=
true
)
@XmlAttribute
(
required
=
true
)
String
name
;
private
String
name
;
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
...
...
h2/src/main/org/h2/security/auth/UserToRolesMapperConfig.java
浏览文件 @
72e7f15f
...
@@ -17,10 +17,10 @@ import javax.xml.bind.annotation.XmlElement;
...
@@ -17,10 +17,10 @@ import javax.xml.bind.annotation.XmlElement;
public
class
UserToRolesMapperConfig
{
public
class
UserToRolesMapperConfig
{
@XmlAttribute
(
required
=
true
,
name
=
"class"
)
@XmlAttribute
(
required
=
true
,
name
=
"class"
)
String
className
;
private
String
className
;
@XmlElement
(
name
=
"property"
)
@XmlElement
(
name
=
"property"
)
List
<
PropertyConfig
>
properties
;
private
List
<
PropertyConfig
>
properties
;
public
String
getClassName
()
{
public
String
getClassName
()
{
return
className
;
return
className
;
...
...
h2/src/main/org/h2/security/auth/impl/AssignRealmNameRole.java
浏览文件 @
72e7f15f
...
@@ -20,7 +20,7 @@ import org.h2.security.auth.ConfigProperties;
...
@@ -20,7 +20,7 @@ import org.h2.security.auth.ConfigProperties;
*/
*/
public
class
AssignRealmNameRole
implements
UserToRolesMapper
{
public
class
AssignRealmNameRole
implements
UserToRolesMapper
{
String
roleNameFormat
;
private
String
roleNameFormat
;
public
AssignRealmNameRole
()
{
public
AssignRealmNameRole
()
{
this
(
"@%s"
);
this
(
"@%s"
);
...
...
h2/src/main/org/h2/security/auth/impl/JaasCredentialsValidator.java
浏览文件 @
72e7f15f
...
@@ -33,7 +33,7 @@ public class JaasCredentialsValidator implements CredentialsValidator {
...
@@ -33,7 +33,7 @@ public class JaasCredentialsValidator implements CredentialsValidator {
public
static
final
String
DEFAULT_APPNAME
=
"h2"
;
public
static
final
String
DEFAULT_APPNAME
=
"h2"
;
String
appName
;
private
String
appName
;
public
JaasCredentialsValidator
()
{
public
JaasCredentialsValidator
()
{
this
(
DEFAULT_APPNAME
);
this
(
DEFAULT_APPNAME
);
...
...
h2/src/main/org/h2/security/auth/impl/LdapCredentialsValidator.java
浏览文件 @
72e7f15f
...
@@ -29,11 +29,11 @@ import org.h2.security.auth.ConfigProperties;
...
@@ -29,11 +29,11 @@ import org.h2.security.auth.ConfigProperties;
*/
*/
public
class
LdapCredentialsValidator
implements
CredentialsValidator
{
public
class
LdapCredentialsValidator
implements
CredentialsValidator
{
String
bindDnPattern
;
private
String
bindDnPattern
;
String
host
;
private
String
host
;
int
port
;
private
int
port
;
boolean
secure
;
private
boolean
secure
;
String
url
;
private
String
url
;
@Override
@Override
public
void
configure
(
ConfigProperties
configProperties
)
{
public
void
configure
(
ConfigProperties
configProperties
)
{
...
...
h2/src/main/org/h2/security/auth/impl/StaticRolesMapper.java
浏览文件 @
72e7f15f
...
@@ -26,7 +26,7 @@ import org.h2.security.auth.ConfigProperties;
...
@@ -26,7 +26,7 @@ import org.h2.security.auth.ConfigProperties;
*/
*/
public
class
StaticRolesMapper
implements
UserToRolesMapper
{
public
class
StaticRolesMapper
implements
UserToRolesMapper
{
Collection
<
String
>
roles
;
private
Collection
<
String
>
roles
;
public
StaticRolesMapper
()
{
public
StaticRolesMapper
()
{
}
}
...
...
h2/src/main/org/h2/security/auth/impl/StaticUserCredentialsValidator.java
浏览文件 @
72e7f15f
...
@@ -23,10 +23,10 @@ import org.h2.util.Utils;
...
@@ -23,10 +23,10 @@ import org.h2.util.Utils;
*/
*/
public
class
StaticUserCredentialsValidator
implements
CredentialsValidator
{
public
class
StaticUserCredentialsValidator
implements
CredentialsValidator
{
Pattern
userNamePattern
;
private
Pattern
userNamePattern
;
String
password
;
private
String
password
;
byte
[]
salt
;
private
byte
[]
salt
;
byte
[]
hashWithSalt
;
private
byte
[]
hashWithSalt
;
public
StaticUserCredentialsValidator
()
{
public
StaticUserCredentialsValidator
()
{
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论