|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.p2p.multiring.RingCertificate
| Field Summary | |
protected java.net.InetSocketAddress[] |
bootstraps
DESCRIBE THE FIELD |
protected static java.util.HashMap |
CERTIFICATES
DESCRIBE THE FIELD |
protected Id |
id
DESCRIBE THE FIELD |
protected java.security.PublicKey |
key
DESCRIBE THE FIELD |
protected java.net.InetSocketAddress |
logServer
DESCRIBE THE FIELD |
protected java.lang.String |
name
DESCRIBE THE FIELD |
protected java.lang.Integer |
port
DESCRIBE THE FIELD |
protected java.lang.Integer |
protocol
DESCRIBE THE FIELD |
protected byte[] |
signature
DESCRIBE THE FIELD |
protected java.lang.Long |
version
DESCRIBE THE FIELD |
| Constructor Summary | |
RingCertificate(java.lang.String name,
Id id,
int protocol,
java.net.InetSocketAddress[] bootstraps,
int port,
java.security.PublicKey key,
java.net.InetSocketAddress logServer)
Builds a new RingCertificate given the appropriate info |
|
| Method Summary | |
java.net.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 |
java.security.PublicKey |
getKey()
Returns the public key which is used to authenticate |
java.net.InetSocketAddress |
getLogServer()
Returns the log server of this ring |
java.lang.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(java.lang.String[] args)
Main method which, as a utility, generates a RingCertificate by asking the user for prompts |
static java.security.KeyPair |
readKeyPair(java.lang.String ring,
java.lang.String pass)
Internal method which writes out the keypair to a file, encrypted |
java.lang.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 java.lang.String name
protected Id id
protected java.lang.Integer protocol
protected java.net.InetSocketAddress[] bootstraps
protected java.lang.Integer port
protected java.net.InetSocketAddress logServer
protected java.security.PublicKey key
protected java.lang.Long version
protected byte[] signature
protected static java.util.HashMap CERTIFICATES
| Constructor Detail |
public RingCertificate(java.lang.String name,
Id id,
int protocol,
java.net.InetSocketAddress[] bootstraps,
int port,
java.security.PublicKey key,
java.net.InetSocketAddress logServer)
name - DESCRIBE THE PARAMETERid - DESCRIBE THE PARAMETERprotocol - DESCRIBE THE PARAMETERbootstraps - DESCRIBE THE PARAMETERport - DESCRIBE THE PARAMETERkey - DESCRIBE THE PARAMETERlogServer - DESCRIBE THE PARAMETER| Method Detail |
public java.lang.String getName()
public Id getId()
public int getProtocol()
public long getVersion()
public java.net.InetSocketAddress[] getBootstraps()
public int getPort()
public java.security.PublicKey getKey()
public java.net.InetSocketAddress getLogServer()
public java.lang.String toString()
public static RingCertificate getCertificate(Id ringId)
ringId - The id
public static java.security.KeyPair readKeyPair(java.lang.String ring,
java.lang.String pass)
throws java.io.IOException,
java.lang.ClassNotFoundException
pass - THe passwordring - The ring name
java.io.IOException - DESCRIBE THE EXCEPTION
java.lang.ClassNotFoundException - DESCRIBE THE EXCEPTION
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - The command line arguments
java.lang.Exception - DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||