|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.login.DefaultSecurityAuthority
public class DefaultSecurityAuthority
Utility class that can be used in cases where components other than the main user interface may need to launch provider registration. At the time I am writing this, the DefaultSecurityAuthority is being used by the systray and uri handlers.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.SecurityAuthority |
|---|
AUTHENTICATION_REQUIRED, CONNECTION_FAILED, WRONG_PASSWORD, WRONG_USERNAME |
| Constructor Summary | |
|---|---|
DefaultSecurityAuthority(ProtocolProviderService protocolProvider)
Creates an instance of SecurityAuthorityImpl. |
|
| Method Summary | |
|---|---|
boolean |
isUserNameEditable()
Indicates if the user name is currently editable, i.e. |
UserCredentials |
obtainCredentials(String realm,
UserCredentials userCredentials)
Implements the SecurityAuthority.obtainCredentials method. |
UserCredentials |
obtainCredentials(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSecurityAuthority(ProtocolProviderService protocolProvider)
protocolProvider - The ProtocolProviderService for this
SecurityAuthority.| Method Detail |
|---|
public UserCredentials obtainCredentials(String realm,
UserCredentials userCredentials,
int reasonCode)
SecurityAuthority.obtainCredentials method.
Creates and show an AuthenticationWindow, where user could enter
its password.
obtainCredentials in interface SecurityAuthorityrealm - 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(String realm,
UserCredentials userCredentials)
SecurityAuthority.obtainCredentials method.
Creates and show an AuthenticationWindow, where user could enter
its password.
obtainCredentials in interface SecurityAuthorityrealm - The realm that the credentials are needed for.userCredentials - the values to propose the user by default
public void setUserNameEditable(boolean isUserNameEditable)
setUserNameEditable in interface SecurityAuthorityisUserNameEditable - indicates if the user name could be changed by
userpublic boolean isUserNameEditable()
isUserNameEditable in interface SecurityAuthoritytrue if the user name could be changed,
false - otherwise.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||