Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
6e26dce4
提交
6e26dce4
authored
6月 22, 2018
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
javadoc cleanup
上级
9f4ea2c5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
33 行删除
+9
-33
JdbcStatement.java
h2/src/main/org/h2/jdbc/JdbcStatement.java
+6
-7
AuthenticationInfo.java
h2/src/main/org/h2/security/auth/AuthenticationInfo.java
+0
-2
Authenticator.java
h2/src/main/org/h2/security/auth/Authenticator.java
+1
-6
DefaultAuthenticator.java
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
+2
-13
H2AuthConfigXml.java
h2/src/main/org/h2/security/auth/H2AuthConfigXml.java
+0
-5
没有找到文件。
h2/src/main/org/h2/jdbc/JdbcStatement.java
浏览文件 @
6e26dce4
...
...
@@ -11,7 +11,6 @@ import java.sql.SQLException;
import
java.sql.SQLWarning
;
import
java.sql.Statement
;
import
java.util.ArrayList
;
import
org.h2.api.ErrorCode
;
import
org.h2.command.CommandInterface
;
import
org.h2.engine.SessionInterface
;
...
...
@@ -944,8 +943,8 @@ public class JdbcStatement extends TraceObject implements Statement, JdbcStateme
*
* @param sql the SQL statement
* @param autoGeneratedKeys
* {@link Statement
.
RETURN_GENERATED_KEYS} if generated keys should
* be available for retrieval, {@link Statement
.
NO_GENERATED_KEYS} if
* {@link Statement
#
RETURN_GENERATED_KEYS} if generated keys should
* be available for retrieval, {@link Statement
#
NO_GENERATED_KEYS} if
* generated keys should not be available
* @return the update count (number of row affected by an insert,
* update or delete, or 0 if no rows or the statement was a
...
...
@@ -971,8 +970,8 @@ public class JdbcStatement extends TraceObject implements Statement, JdbcStateme
*
* @param sql the SQL statement
* @param autoGeneratedKeys
* {@link Statement
.
RETURN_GENERATED_KEYS} if generated keys should
* be available for retrieval, {@link Statement
.
NO_GENERATED_KEYS} if
* {@link Statement
#
RETURN_GENERATED_KEYS} if generated keys should
* be available for retrieval, {@link Statement
#
NO_GENERATED_KEYS} if
* generated keys should not be available
* @return the update count (number of row affected by an insert,
* update or delete, or 0 if no rows or the statement was a
...
...
@@ -1097,8 +1096,8 @@ public class JdbcStatement extends TraceObject implements Statement, JdbcStateme
*
* @param sql the SQL statement
* @param autoGeneratedKeys
* {@link Statement
.
RETURN_GENERATED_KEYS} if generated keys should
* be available for retrieval, {@link Statement
.
NO_GENERATED_KEYS} if
* {@link Statement
#
RETURN_GENERATED_KEYS} if generated keys should
* be available for retrieval, {@link Statement
#
NO_GENERATED_KEYS} if
* generated keys should not be available
* @return the update count (number of row affected by an insert,
* update or delete, or 0 if no rows or the statement was a
...
...
h2/src/main/org/h2/security/auth/AuthenticationInfo.java
浏览文件 @
6e26dce4
...
...
@@ -59,8 +59,6 @@ public class AuthenticationInfo {
/**
* get nested identity
*
* @return
*/
public
Object
getNestedIdentity
()
{
return
nestedIdentity
;
...
...
h2/src/main/org/h2/security/auth/Authenticator.java
浏览文件 @
6e26dce4
...
...
@@ -16,11 +16,8 @@ public interface Authenticator {
/**
* Perform user authentication.
*
* @param authenticationInfo
* @param database
* @return valid database user or null if user doesn't exists in the
* database
* @throws AuthenticationException
*/
User
authenticate
(
AuthenticationInfo
authenticationInfo
,
Database
database
)
throws
AuthenticationException
;
...
...
@@ -28,9 +25,7 @@ public interface Authenticator {
* Initialize the authenticator. This method is invoked by databases when
* the authenticator is set when the authenticator is set.
*
* @param database
* target database
* @throws AuthConfigException
* @param database target database
*/
void
init
(
Database
database
)
throws
AuthConfigException
;
}
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
浏览文件 @
6e26dce4
...
...
@@ -13,7 +13,6 @@ import java.util.HashSet;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
org.h2.api.CredentialsValidator
;
import
org.h2.api.UserToRolesMapper
;
import
org.h2.engine.Database
;
...
...
@@ -93,8 +92,6 @@ public class DefaultAuthenticator implements Authenticator {
/**
* If set save users externals defined during the authentication.
*
* @return
*/
public
boolean
isPersistUsers
()
{
return
persistUsers
;
...
...
@@ -106,8 +103,6 @@ public class DefaultAuthenticator implements Authenticator {
/**
* If set create external users in the database if not present.
*
* @return
*/
public
boolean
isAllowUserRegistration
()
{
return
allowUserRegistration
;
...
...
@@ -120,8 +115,6 @@ public class DefaultAuthenticator implements Authenticator {
/**
* When set create roles not found in the database. If not set roles not
* found in the database are silently skipped
*
* @return
*/
public
boolean
isCreateMissingRoles
()
{
return
createMissingRoles
;
...
...
@@ -170,9 +163,7 @@ public class DefaultAuthenticator implements Authenticator {
* <li>Use the default configuration hard coded</li>
* </ol>
*
* @param database
* where authenticator is initialized
* @throws AuthConfigException
* @param database where authenticator is initialized
*/
@Override
public
void
init
(
Database
database
)
throws
AuthConfigException
{
...
...
@@ -230,9 +221,7 @@ public class DefaultAuthenticator implements Authenticator {
/**
* Configure the authenticator from a configuration file
*
* @param configUrl
* URL of configuration file
* @throws Exception
* @param configUrl URL of configuration file
*/
public
void
configureFromUrl
(
URL
configUrl
)
throws
Exception
{
H2AuthConfig
config
=
H2AuthConfigXml
.
parseFrom
(
configUrl
);
...
...
h2/src/main/org/h2/security/auth/H2AuthConfigXml.java
浏览文件 @
6e26dce4
...
...
@@ -7,10 +7,8 @@ package org.h2.security.auth;
import
java.io.InputStream
;
import
java.net.URL
;
import
javax.xml.parsers.SAXParser
;
import
javax.xml.parsers.SAXParserFactory
;
import
org.xml.sax.Attributes
;
import
org.xml.sax.SAXException
;
import
org.xml.sax.helpers.DefaultHandler
;
...
...
@@ -91,9 +89,6 @@ public class H2AuthConfigXml extends DefaultHandler{
/**
* Parse the xml
* @param url
* @return
* @throws Exception
*/
public
static
H2AuthConfig
parseFrom
(
URL
url
)
throws
Exception
{
try
(
InputStream
inputStream
=
url
.
openStream
())
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论