接口 YggdrasilAuthenticator.PasswordProvider

封闭类:
YggdrasilAuthenticator

public static interface YggdrasilAuthenticator.PasswordProvider
Provides username and password for yggdrasil authentication.
  • 方法详细资料

    • getUsername

      String getUsername() throws org.to2mbn.jmccc.auth.AuthenticationException
      Gets the username to login.
      返回:
      the username
      抛出:
      org.to2mbn.jmccc.auth.AuthenticationException - If the username cannot be provided
    • getPassword

      String getPassword() throws org.to2mbn.jmccc.auth.AuthenticationException
      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, a DefaultCharacterSelector will be used to select characters.

      返回:
      a character selector, can be null