JXTA

net.jxta.impl.membership.pse
Class DialogAuthenticator

java.lang.Object
  extended by net.jxta.impl.membership.pse.StringAuthenticator
      extended by net.jxta.impl.membership.pse.DialogAuthenticator
All Implemented Interfaces:
Authenticator, InteractiveAuthenticator

public final class DialogAuthenticator
extends StringAuthenticator
implements InteractiveAuthenticator

An interactive graphical authenticator associated with the PSE membership service.

See Also:
Authenticator, InteractiveAuthenticator, MembershipService, PSEMembershipService

Field Summary
 
Fields inherited from class net.jxta.impl.membership.pse.StringAuthenticator
application, identity, key_password, seedCert, seedKey, source, store_password
 
Constructor Summary
DialogAuthenticator(PSEMembershipService source, AuthenticationCredential application)
          Creates an authenticator for the PSE membership service.
DialogAuthenticator(PSEMembershipService source, AuthenticationCredential application, X509Certificate seedCert, EncryptedPrivateKeyInfo seedKey)
          Creates an authenticator for the PSE membership service.
 
Method Summary
 String getMethodName()
          Returns the name of this authentication method.
 boolean interact()
          Perform user interface interaction with user.
 
Methods inherited from class net.jxta.impl.membership.pse.StringAuthenticator
finalize, getAuth1_KeyStorePassword, getAuth2Identity, getAuth3_IdentityPassword, getAuthenticationCredential, getCertificate, getIdentities, getSourceService, isReadyForJoin, setAuth1_KeyStorePassword, setAuth1_KeyStorePassword, setAuth2Identity, setAuth2Identity, setAuth3_IdentityPassword, setAuth3_IdentityPassword
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jxta.membership.Authenticator
getAuthenticationCredential, getSourceService, isReadyForJoin
 

Constructor Detail

DialogAuthenticator

DialogAuthenticator(PSEMembershipService source,
                    AuthenticationCredential application)
Creates an authenticator for the PSE membership service. Anything entered into the identity info section of the Authentication credential is ignored.

Parameters:
source - The instance of the PSE membership service which created this authenticator.
application - Anything entered into the identity info section of the Authentication credential is ignored.

DialogAuthenticator

DialogAuthenticator(PSEMembershipService source,
                    AuthenticationCredential application,
                    X509Certificate seedCert,
                    EncryptedPrivateKeyInfo seedKey)
Creates an authenticator for the PSE membership service. Anything entered into the identity info section of the Authentication credential is ignored.

Parameters:
source - The instance of the PSE membership service which created this authenticator.
application - Anything entered into the identity info section of the Authentication credential is ignored.
Method Detail

getMethodName

public String getMethodName()
Returns the name of this authentication method. This should be the same name which was used in the Authentication credential.

Specified by:
getMethodName in interface Authenticator
Overrides:
getMethodName in class StringAuthenticator
Returns:
String containing the name of this authentication method.

interact

public boolean interact()
Perform user interface interaction with user. If result is false then Authenticator.isReadyForJoin() will also return false.

Specified by:
interact in interface InteractiveAuthenticator
Returns:
true if the interaction was not cancelled otherwise false.

JXSE