public class DefaultSecurityAuthority extends java.lang.Object implements SecurityAuthority
AUTHENTICATION_REQUIRED, CONNECTION_FAILED, WRONG_PASSWORD, WRONG_USERNAME
Constructor and Description |
---|
DefaultSecurityAuthority(ProtocolProviderService protocolProvider)
Creates an instance of SecurityAuthorityImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isUserNameEditable()
Indicates if the user name is currently editable, i.e.
|
UserCredentials |
obtainCredentials(java.lang.String realm,
UserCredentials userCredentials)
Implements the
SecurityAuthority.obtainCredentials method. |
UserCredentials |
obtainCredentials(java.lang.String realm,
UserCredentials userCredentials,
int reasonCode)
Implements the
SecurityAuthority.obtainCredentials method. |
void |
setUserNameEditable(boolean isUserNameEditable)
Sets the userNameEditable property, which indicates if the user name
could be changed by user or not.
|
public DefaultSecurityAuthority(ProtocolProviderService protocolProvider)
protocolProvider
- The ProtocolProviderService for this
SecurityAuthority.public UserCredentials obtainCredentials(java.lang.String realm, UserCredentials userCredentials, int reasonCode)
SecurityAuthority.obtainCredentials
method.
Creates and show an AuthenticationWindow, where user could enter
its password.obtainCredentials
in interface SecurityAuthority
realm
- The realm that the credentials are needed for.userCredentials
- the values to propose the user by defaultreasonCode
- indicates the reason for which we're obtaining the
credentials.public UserCredentials obtainCredentials(java.lang.String realm, UserCredentials userCredentials)
SecurityAuthority.obtainCredentials
method.
Creates and show an AuthenticationWindow, where user could enter
its password.obtainCredentials
in interface SecurityAuthority
realm
- The realm that the credentials are needed for.userCredentials
- the values to propose the user by defaultpublic void setUserNameEditable(boolean isUserNameEditable)
setUserNameEditable
in interface SecurityAuthority
isUserNameEditable
- indicates if the user name could be changed by
userpublic boolean isUserNameEditable()
isUserNameEditable
in interface SecurityAuthority
true
if the user name could be changed,
false
- otherwise.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.