📄 wikiauthenticator.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -