|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.multiring.RingCertificate
public class RingCertificate
| Field Summary | |
|---|---|
protected InetSocketAddress[] |
bootstraps
|
protected static HashMap<Id,RingCertificate> |
CERTIFICATES
|
protected Id |
id
|
protected PublicKey |
key
|
protected InetSocketAddress |
logServer
|
protected String |
name
|
protected Integer |
port
|
protected Integer |
protocol
|
protected byte[] |
signature
|
protected Long |
version
|
| Constructor Summary | |
|---|---|
RingCertificate(String name,
Id id,
int protocol,
InetSocketAddress[] bootstraps,
int port,
PublicKey key,
InetSocketAddress logServer)
Builds a new RingCertificate given the appropriate info |
|
| Method Summary | |
|---|---|
InetSocketAddress[] |
getBootstraps()
Returns the bootstraps of this ring |
static RingCertificate |
getCertificate(Id ringId)
Method which returns the certificates found for the given ringId |
Id |
getId()
Returns the id of this ring |
PublicKey |
getKey()
Returns the public key which is used to authenticate |
InetSocketAddress |
getLogServer()
Returns the log server of this ring |
String |
getName()
Returns the name of this ring |
int |
getPort()
Returns the preferred port of this ring |
int |
getProtocol()
Returns the protcol of this ring |
long |
getVersion()
Returns the version of this ring cert |
static void |
main(String[] args)
Main method which, as a utility, generates a RingCertificate by asking the user for prompts |
static KeyPair |
readKeyPair(String ring,
String pass)
Internal method which writes out the keypair to a file, encrypted |
String |
toString()
Returns a string of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap<Id,RingCertificate> CERTIFICATES
protected String name
protected Id id
protected Integer protocol
protected InetSocketAddress[] bootstraps
protected Integer port
protected InetSocketAddress logServer
protected PublicKey key
protected Long version
protected byte[] signature
| Constructor Detail |
|---|
public RingCertificate(String name,
Id id,
int protocol,
InetSocketAddress[] bootstraps,
int port,
PublicKey key,
InetSocketAddress logServer)
| Method Detail |
|---|
public static RingCertificate getCertificate(Id ringId)
ringId - The id
public String getName()
public Id getId()
public int getProtocol()
public long getVersion()
public InetSocketAddress[] getBootstraps()
public int getPort()
public PublicKey getKey()
public InetSocketAddress getLogServer()
public String toString()
toString in class Object
public static KeyPair readKeyPair(String ring,
String pass)
throws IOException,
ClassNotFoundException
pass - THe passwordring - The ring name
IOException
ClassNotFoundException
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||