Project JXTA

net.jxta.impl.id.CBID
Class Instantiator

java.lang.Object
  extended bynet.jxta.impl.id.CBID.Instantiator
All Implemented Interfaces:
IDFactory.Instantiator, IDFactory.URIInstantiator

public class Instantiator
extends Object
implements IDFactory.URIInstantiator

The instantiator for the CBID ID Format.

For "seed" varient constructors, the "seed" must be a certificate.


Field Summary
(package private) static String CBIDEncoded
          Our ID Format
 
Constructor Summary
Instantiator()
           
 
Method Summary
 ID fromURI(URI source)
          
 ID fromURL(URL source)
          
 ID fromURNNamespaceSpecificPart(String source)
          
 String getSupportedIDFormat()
          
 CodatID newCodatID(PeerGroupID groupID)
          
 CodatID newCodatID(PeerGroupID groupID, byte[] seed)
          
 CodatID newCodatID(PeerGroupID groupID, byte[] seed, InputStream in)
          
 CodatID newCodatID(PeerGroupID groupID, InputStream in)
          
 ModuleClassID newModuleClassID()
          
 ModuleClassID newModuleClassID(ModuleClassID classID)
          
 ModuleSpecID newModuleSpecID(ModuleClassID classID)
          
 PeerGroupID newPeerGroupID()
          
 PeerGroupID newPeerGroupID(byte[] seed)
          
 PeerGroupID newPeerGroupID(PeerGroupID parent)
          
 PeerGroupID newPeerGroupID(PeerGroupID parent, byte[] seed)
          
 PeerID newPeerID(PeerGroupID groupID)
          
 PeerID newPeerID(PeerGroupID groupID, byte[] seed)
          
 PipeID newPipeID(PeerGroupID groupID)
          
 PipeID newPipeID(PeerGroupID groupID, byte[] seed)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CBIDEncoded

static final String CBIDEncoded
Our ID Format

See Also:
Constant Field Values
Constructor Detail

Instantiator

public Instantiator()
Method Detail

getSupportedIDFormat

public String getSupportedIDFormat()

Specified by:
getSupportedIDFormat in interface IDFactory.Instantiator

fromURL

public ID fromURL(URL source)
           throws MalformedURLException,
                  UnknownServiceException

Specified by:
fromURL in interface IDFactory.Instantiator
Throws:
MalformedURLException
UnknownServiceException

newCodatID

public CodatID newCodatID(PeerGroupID groupID)

Specified by:
newCodatID in interface IDFactory.Instantiator

newCodatID

public CodatID newCodatID(PeerGroupID groupID,
                          byte[] seed)

Specified by:
newCodatID in interface IDFactory.Instantiator

newCodatID

public CodatID newCodatID(PeerGroupID groupID,
                          InputStream in)
                   throws IOException

Specified by:
newCodatID in interface IDFactory.Instantiator
Throws:
IOException

newCodatID

public CodatID newCodatID(PeerGroupID groupID,
                          byte[] seed,
                          InputStream in)
                   throws IOException

Specified by:
newCodatID in interface IDFactory.Instantiator
Throws:
IOException

newPeerGroupID

public PeerGroupID newPeerGroupID()

Specified by:
newPeerGroupID in interface IDFactory.Instantiator

newPeerGroupID

public PeerGroupID newPeerGroupID(byte[] seed)

Specified by:
newPeerGroupID in interface IDFactory.Instantiator

newPeerGroupID

public PeerGroupID newPeerGroupID(PeerGroupID parent)

Specified by:
newPeerGroupID in interface IDFactory.Instantiator

newPeerGroupID

public PeerGroupID newPeerGroupID(PeerGroupID parent,
                                  byte[] seed)

Specified by:
newPeerGroupID in interface IDFactory.Instantiator

newPeerID

public PeerID newPeerID(PeerGroupID groupID)

Specified by:
newPeerID in interface IDFactory.Instantiator

newPeerID

public PeerID newPeerID(PeerGroupID groupID,
                        byte[] seed)

Specified by:
newPeerID in interface IDFactory.Instantiator

newPipeID

public PipeID newPipeID(PeerGroupID groupID)

Specified by:
newPipeID in interface IDFactory.Instantiator

newPipeID

public PipeID newPipeID(PeerGroupID groupID,
                        byte[] seed)

Specified by:
newPipeID in interface IDFactory.Instantiator

newModuleClassID

public ModuleClassID newModuleClassID()

Specified by:
newModuleClassID in interface IDFactory.Instantiator

newModuleClassID

public ModuleClassID newModuleClassID(ModuleClassID classID)

Specified by:
newModuleClassID in interface IDFactory.Instantiator

newModuleSpecID

public ModuleSpecID newModuleSpecID(ModuleClassID classID)

Specified by:
newModuleSpecID in interface IDFactory.Instantiator

fromURI

public ID fromURI(URI source)
           throws URISyntaxException

Specified by:
fromURI in interface IDFactory.URIInstantiator
Throws:
URISyntaxException

fromURNNamespaceSpecificPart

public ID fromURNNamespaceSpecificPart(String source)
                                throws URISyntaxException

Specified by:
fromURNNamespaceSpecificPart in interface IDFactory.URIInstantiator
Throws:
URISyntaxException

JXTA J2SE