preidentifier.java
来自「CroftSoft Code Library是一个开源的可移植的纯Java游戏库」· Java 代码 · 共 56 行
JAVA
56 行
package com.croftsoft.core.security;
import com.croftsoft.core.lang.NullArgumentException;
/*********************************************************************
* Identifier in which the Authentication has been pre-fetched.
*
* <p />
*
* @version
* 2001-07-30
* @since
* 2001-07-30
* @author
* <a href="http://croftsoft.com/">David Wallace Croft</a>
*********************************************************************/
public final class PreIdentifier
implements Identifier
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
{
private final Authentication authentication;
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
public PreIdentifier ( Authentication authentication )
//////////////////////////////////////////////////////////////////////
{
NullArgumentException.check (
this.authentication = authentication );
}
public PreIdentifier (
String username,
String password )
//////////////////////////////////////////////////////////////////////
{
this ( new Authentication ( username, password ) );
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
public Authentication getAuthentication ( )
//////////////////////////////////////////////////////////////////////
{
return authentication;
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?