net.jxta.impl.membership.pse
Class DialogAuthenticator
java.lang.Object
net.jxta.impl.membership.pse.StringAuthenticator
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
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 |
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.
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
.