wikiauthenticator.java
来自「JSPWiki,100%Java开发的一套完整WIKI程序」· Java 代码 · 共 46 行
JAVA
46 行
package com.ecyrd.jspwiki.auth;import java.util.Properties;import com.ecyrd.jspwiki.NoRequiredPropertyException;import com.ecyrd.jspwiki.providers.ProviderException;/** * Defines the interface for connecting to different authentication * services. * * @since 2.1.11. * @author Erik Bunn */public interface WikiAuthenticator{ /** * Initializes the WikiAuthenticator based on values from a Properties * object. */ public void initialize( Properties props ) throws NoRequiredPropertyException; /** * Authenticates a user, using the name and password present in the * parameter. * * @return true, if this is a valid UserProfile, false otherwise. */ public boolean authenticate( UserProfile wup ); /** * Does this authenticator support changing passwords? */ public boolean canChangePasswords(); /** * Sets the user password. This is an optional operation. * * @throws ProviderException If the password cannot be set. */ public void setPassword( UserProfile wup, String password ) throws ProviderException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?