|
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
public class RingCertificate
| Field Summary | |
|---|---|
protected java.net.InetSocketAddress[] |
bootstraps
|
protected static java.util.HashMap |
CERTIFICATES
|
protected Id |
id
|
protected java.security.PublicKey |
key
|
protected java.net.InetSocketAddress |
logServer
|
protected java.lang.String |
name
|
protected java.lang.Integer |
port
|
protected java.lang.Integer |
protocol
|
protected byte[] |
signature
|
protected java.lang.Long |
version
|
| 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 static java.util.HashMap CERTIFICATES
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
| 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)
| Method Detail |
|---|
public static RingCertificate getCertificate(Id ringId)
ringId - The id
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()
toString in class java.lang.Object
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
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||