Package org.sonews.auth
Klasse User
java.lang.Object
org.sonews.auth.User
Represents users (clients) accessing our service through NNTP protocol.
This class can be extended by your plugin to describe additional information,
that was gained during login process.
When User object is created, default authentication status is false.
- Autor:
- František Kučera
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanIn some configurations users don't have to use their password – they can just tell us their name and we will trust them – in this case User object will exist end user name will be filled, but this method will return false.voidsetAuthenticated(boolean authenticated) This method is to be called from AUTHINFO PASS Command implementation.voidsetUserName(String userName)
-
Felddetails
-
userName
-
authenticated
private boolean authenticated
-
-
Konstruktordetails
-
User
public User() -
User
-
User
-
-
Methodendetails
-
getUserName
-
setUserName
-
isAuthenticated
public boolean isAuthenticated()In some configurations users don't have to use their password – they can just tell us their name and we will trust them – in this case User object will exist end user name will be filled, but this method will return false.- Gibt zurück:
- true if user was succesfully authenticated (has provided correct password).
-
setAuthenticated
public void setAuthenticated(boolean authenticated) This method is to be called from AUTHINFO PASS Command implementation.- Parameter:
authenticated- true if user has provided right password in AUTHINFO PASS password.- Siehe auch:
-