|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--spki.demo.RootIssuer
spki.demo RootIssuer class.
| Field Summary | |
private static String |
__ME
This class's full name. |
private HashDB |
cert_db
the live master certificates database object. |
private static String |
CERT_DBNAME
the certificates database filename suffix. |
private PublicKey |
certifier
the certifier's principal. |
private static String |
CERTIFIER_DBKEY
the certifier's database index key. |
private String |
db_id
|
private static String |
DBPATH
databases's pathname prefix. |
static int |
DEFAULT_KEY_LENGTH
|
static String |
DEFAULT_PUB_ALG
|
private HashDB |
escrow_db
the escrow database object. |
private static String |
ESCROW_DBNAME
the escrow database filename suffix. |
private int |
key_length
the key-length in bits. |
private static String |
KEY_LENGTH_DBKEY
the key-length's database index key. |
private String |
keyid
the key-chain master key-pair's key-id. |
private HashDB |
main_db
the main database object. |
private static String |
MAIN_DBNAME
the main database filename suffix. |
private static String |
MASTER_KEYPAIR_DBKEY
the issuer's key-pair's database index key. |
private Vector |
nonces
list of active registration request nonces. |
private PrivateKey |
privkey
the certifider's private key. |
private String |
pub_alg
the public-key algorithm-id. |
private static String |
PUB_ALG_DBKEY
the public-key algorithm-id's database index key. |
private PublicKey |
pubkey
the issuer's public key. |
private int |
state
|
static int |
STATE_ALIVE
|
static int |
STATE_DEAD
|
static String[] |
STATES
|
| Constructor Summary | |
protected |
RootIssuer()
Default constructor. |
|
RootIssuer(PublicKey certifier)
Create a brand new issuer, using the default algorithm, key-length and specified certifier. |
|
RootIssuer(String db_id)
Restore a live issuer with the specified database id. |
|
RootIssuer(String pub_alg,
int key_length,
PublicKey certifier)
Create a brand new issuer, using the specified algorithm, key-length and certifier. |
| Method Summary | |
private String |
buildDBname(String dbname)
|
private void |
closeDB()
to be used by the finalize() method only! |
private void |
construct()
|
protected void |
finalize()
|
PublicKey |
getCertifier()
get this issuer's trusted certifier's public key. |
String |
getDBId()
get this issuer's database id. |
PublicKey |
getMasterKey()
get this issuer's public key. |
int |
getState()
get the current state. |
Sexp |
newNonce()
generate a unique registration nonce and store in the active nonce list. |
private void |
openDB()
to be used by construct() and restore() only! |
Certificate |
register(RegistrationRequest request)
verify the given RegistrationRequest and issue a capability certificate with the requested capability. |
void |
restore(String db_id)
restore the RootIssuer object from the database with the given db-id. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final String __ME
private static final String DBPATH
private static final String MAIN_DBNAME
private HashDB main_db
private static final String CERT_DBNAME
private HashDB cert_db
private String db_id
private static final String ESCROW_DBNAME
private HashDB escrow_db
private static final String MASTER_KEYPAIR_DBKEY
private static final String PUB_ALG_DBKEY
private static final String KEY_LENGTH_DBKEY
private PublicKey pubkey
private PrivateKey privkey
private String keyid
private static final String CERTIFIER_DBKEY
private PublicKey certifier
public static final String DEFAULT_PUB_ALG
private String pub_alg
public static final int DEFAULT_KEY_LENGTH
private int key_length
public static final int STATE_DEAD
public static final int STATE_ALIVE
private int state
public static final String[] STATES
private Vector nonces
newNonce(),
register(RegistrationRequest)| Constructor Detail |
protected RootIssuer()
public RootIssuer(PublicKey certifier)
throws SPKIException
RootIssuer(String,int,PublicKey)
public RootIssuer(String pub_alg,
int key_length,
PublicKey certifier)
throws SPKIException
RootIssuer(PublicKey)
public RootIssuer(String db_id)
throws SPKIException
RootIssuer(PublicKey),
RootIssuer(String,int,PublicKey)| Method Detail |
protected void finalize()
throws Throwable
public int getState()
state,
STATESpublic String getDBId()
public PublicKey getMasterKey()
public PublicKey getCertifier()
public Sexp newNonce()
throws SPKIException
nonces
public Certificate register(RegistrationRequest request)
throws SPKIException
RegistrationRequest
private void openDB()
throws SPKIException
private void closeDB()
throws SPKIException
private String buildDBname(String dbname)
throws SPKIException
private void construct()
throws Exception
public void restore(String db_id)
throws Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||