net.jxta.impl.membership
Class PasswdMembership.PasswdAuthenticator
java.lang.Object
|
+--net.jxta.impl.membership.PasswdMembership.PasswdAuthenticator
- Enclosing class:
- PasswdMembership
- public class PasswdMembership.PasswdAuthenticator
- extends java.lang.Object
- implements net.jxta.membership.Authenticator
The authenticator associated with the password membership service.
Method Summary |
java.lang.String |
getAuth1Identity()
|
net.jxta.credential.AuthenticationCredential |
getAuthenticationCredential()
Returns the AuthenticationCredential which is associated with this authenticator |
java.lang.String |
getMethodName()
Returns the name of this authentication method. |
net.jxta.membership.Membership |
getSourceService()
Returns the policy which generated this authenticator. |
boolean |
isReadyForJoin()
Returns true if this Authenticator has been satisfied and is ready
for the join operation. |
void |
setAuth1Identity(java.lang.String who)
|
void |
setAuth2Password(java.lang.String secret)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getSourceService
public net.jxta.membership.Membership getSourceService()
- Returns the policy which generated this authenticator.
- Specified by:
- getSourceService in interface net.jxta.membership.Authenticator
- Returns:
- the service which generated this authenticator.
isReadyForJoin
public boolean isReadyForJoin()
- Returns true if this Authenticator has been satisfied and is ready
for the join operation. Some authenticators may behave in an
asynchronously and this method can be used to determine if the
authentication process has completed. This method makes no
distinction between incomplete authentication and failed authentication.
- Specified by:
- isReadyForJoin in interface net.jxta.membership.Authenticator
- Returns:
- true if this Authenticator has been satisfied and is ready
for the join operation.
getMethodName
public java.lang.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 net.jxta.membership.Authenticator
- Returns:
- the name of this authentication method.
setAuth1Identity
public void setAuth1Identity(java.lang.String who)
getAuth1Identity
public java.lang.String getAuth1Identity()
setAuth2Password
public void setAuth2Password(java.lang.String secret)
getAuthenticationCredential
public net.jxta.credential.AuthenticationCredential getAuthenticationCredential()
- Returns the AuthenticationCredential which is associated with this authenticator
- Specified by:
- getAuthenticationCredential in interface net.jxta.membership.Authenticator
- Returns:
- the AuthenticationCredential which is associated with this authenticator