aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/SecurityAuthority.java
diff options
context:
space:
mode:
authorEmil Ivov <emcho@jitsi.org>2006-08-02 11:42:07 +0000
committerEmil Ivov <emcho@jitsi.org>2006-08-02 11:42:07 +0000
commit795ce1003e5153f3ed974e540fd0ab33c8212b84 (patch)
tree6db6eef77b6476f316da65224449bc1313a59cd5 /src/net/java/sip/communicator/service/protocol/SecurityAuthority.java
parent469229fb171f4d39062034efd66c20ef09599a91 (diff)
downloadjitsi-795ce1003e5153f3ed974e540fd0ab33c8212b84.zip
jitsi-795ce1003e5153f3ed974e540fd0ab33c8212b84.tar.gz
jitsi-795ce1003e5153f3ed974e540fd0ab33c8212b84.tar.bz2
Working on support for interactive password retrieval
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/SecurityAuthority.java')
-rw-r--r--src/net/java/sip/communicator/service/protocol/SecurityAuthority.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/SecurityAuthority.java b/src/net/java/sip/communicator/service/protocol/SecurityAuthority.java
index 488e1bf..201b4ff 100644
--- a/src/net/java/sip/communicator/service/protocol/SecurityAuthority.java
+++ b/src/net/java/sip/communicator/service/protocol/SecurityAuthority.java
@@ -7,11 +7,29 @@
package net.java.sip.communicator.service.protocol;
/**
- * Allows the user interface
+ * Implemented by the user interface, this interface allows a protocol provider
+ * to asynchronosly demand passwords necessary for authentication agaisn various
+ * realms.
+ * <p>
+ * Or in other (simpler words) this is a callback or a hook that the UI would
+ * give a protocol provider so that the protocol provider could
+ * requestCredentials() when necessary (when a password is not available for
+ * a server, or once it has changed, or redemand one after a faulty
+ * authentication)
*
* @author Emil Ivov
*/
public interface SecurityAuthority
{
+ /**
+ * Returns a Credentials object associated with the specified realm.
+ * <p>
+ * @param realm The realm that the credentials are needed for.
+ * @param defaultValues the values to propose the user by default
+ * @return The credentials associated with the specified realm or null if
+ * none could be obtained.
+ */
+ public UserCredentials obtainCredentials(String realm,
+ UserCredentials defaultValues);
}