Project JXTA

net.jxta.impl.membership.pse
Class PSEMembershipService

java.lang.Object
  extended bynet.jxta.impl.membership.pse.PSEMembershipService
All Implemented Interfaces:
MembershipService, Module, Service

public final class PSEMembershipService
extends Object
implements MembershipService

A JXTA Membership Service utilizing PKI to provide secure identities.

See Also:
MembershipService

Field Summary
(package private)  PeerGroup group
          the peergroup to which this service is associated.
static ModuleSpecID pseMembershipSpecID
          Well known service specification identifier: pse membership
(package private)  PSEConfig pseStore
          the keystore we are working with.
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK
 
Constructor Summary
PSEMembershipService()
          Default constructor.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
           
 Authenticator apply(AuthenticationCredential application)
          

Supports methods "StringAuthentication", "DialogAuthentication" and "InteractiveAuthentication" (an alias for "DialogAuthentication")

 Enumeration getAuthCredentials()
          
 Enumeration getCurrentCredentials()
          
 Credential getDefaultCredential()
          
 Advertisement getImplAdvertisement()
          
 Service getInterface()
          
 PSEConfig getPSEConfig()
          Returns the key store object associated with this PSE Membership Service.
 void init(PeerGroup group, ID assignedID, Advertisement impl)
          
 Credential join(Authenticator authenticated)
          
 Credential makeCredential(Element element)
          
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
           
 void resign()
          
 int startApp(String[] arg)
          

Currently this service starts by itself and does not expect arguments.

 void stopApp()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pseMembershipSpecID

public static final ModuleSpecID pseMembershipSpecID
Well known service specification identifier: pse membership


group

PeerGroup group
the peergroup to which this service is associated.


pseStore

PSEConfig pseStore
the keystore we are working with.

Constructor Detail

PSEMembershipService

public PSEMembershipService()
                     throws PeerGroupException
Default constructor. Normally only called by the peer group.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface MembershipService

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface MembershipService

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface MembershipService

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface MembershipService

init

public void init(PeerGroup group,
                 ID assignedID,
                 Advertisement impl)
          throws PeerGroupException

Specified by:
init in interface Module
Throws:
PeerGroupException

getInterface

public Service getInterface()

Specified by:
getInterface in interface Service

getImplAdvertisement

public Advertisement getImplAdvertisement()

Specified by:
getImplAdvertisement in interface Service

startApp

public int startApp(String[] arg)

Currently this service starts by itself and does not expect arguments.

Specified by:
startApp in interface Module

stopApp

public void stopApp()

Specified by:
stopApp in interface Module

apply

public Authenticator apply(AuthenticationCredential application)
                    throws ProtocolNotSupportedException

Supports methods "StringAuthentication", "DialogAuthentication" and "InteractiveAuthentication" (an alias for "DialogAuthentication")

Specified by:
apply in interface MembershipService
Throws:
ProtocolNotSupportedException

getDefaultCredential

public Credential getDefaultCredential()

Specified by:
getDefaultCredential in interface MembershipService

getCurrentCredentials

public Enumeration getCurrentCredentials()

Specified by:
getCurrentCredentials in interface MembershipService

getAuthCredentials

public Enumeration getAuthCredentials()

Specified by:
getAuthCredentials in interface MembershipService

join

public Credential join(Authenticator authenticated)
                throws PeerGroupException

Specified by:
join in interface MembershipService
Throws:
PeerGroupException

resign

public void resign()

Specified by:
resign in interface MembershipService

makeCredential

public Credential makeCredential(Element element)

Specified by:
makeCredential in interface MembershipService

getPSEConfig

public PSEConfig getPSEConfig()
Returns the key store object associated with this PSE Membership Service.


JXTA J2SE