接口 YggdrasilAuthenticator.PasswordProvider
public static interface YggdrasilAuthenticator.PasswordProvider
Provides username and password for yggdrasil authentication.
-
方法概要
修饰符和类型方法说明Gets the character selector.Gets the password of the user.Gets the username to login.
-
方法详细资料
-
getUsername
Gets the username to login.- 返回:
- the username
- 抛出:
org.to2mbn.jmccc.auth.AuthenticationException- If the username cannot be provided
-
getPassword
Gets the password of the user.- 返回:
- the password
- 抛出:
org.to2mbn.jmccc.auth.AuthenticationException- If the password cannot be provided
-
getCharacterSelector
CharacterSelector getCharacterSelector()Gets the character selector.The method will be called when no character is selected. If this method returns
null, aDefaultCharacterSelectorwill be used to select characters.- 返回:
- a character selector, can be null
-