|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.peer.secrmi.SecureRMIToolkit | +--edu.stanford.peer.secrmi.SecureClientToolkit
The SecureClientToolkit class is used by the client program to lookup a signed proxy from RMI registry and to verify whether the downloaded proxy is correctly signed by the trusted public keys. The class is instantiated with two trusted public keys: the trusted class key, i.e., the public key trusted for signing the class of the proxy, and the trusted objetc key, i.e., the public key trusted for signing the object of the proxy. These two keys can be the same key or two different keys.
Constructor Summary | |
SecureClientToolkit(java.security.KeyStore classKS,
java.lang.String ckAlias,
java.security.KeyStore objectKS,
java.lang.String okAlias)
Creates a SecureClientToolkit object using two KeyStore objects and two aliases, which specify the two trusted public keys. |
|
SecureClientToolkit(java.security.PublicKey classKey,
java.security.PublicKey objectKey)
Create a SecureClientToolkit object using the two trusted public keys. |
Method Summary | |
static java.security.KeyStore |
loadKeyStore(java.lang.String type,
java.io.FileInputStream in,
char[] icchars)
Load a key store from an input stream. |
static java.security.KeyStore |
loadKeyStore(java.lang.String type,
java.lang.String provider,
java.io.FileInputStream in,
char[] icchars)
Load a key store from an input stream. |
static java.security.KeyStore |
loadKeyStore(java.lang.String type,
java.lang.String filename,
java.lang.String icword)
Load a key store from file. |
static java.security.KeyStore |
loadKeyStore(java.lang.String type,
java.lang.String provider,
java.lang.String filename,
java.lang.String icword)
Load a key store from file. |
java.lang.Object |
lookupSigned(java.lang.String proxyAddress)
Looks up a signed proxy and verify that it is signed by the two trusted keys. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SecureClientToolkit(java.security.PublicKey classKey, java.security.PublicKey objectKey)
classKey
- the trusted class keyobjectKey
- the trusted object keypublic SecureClientToolkit(java.security.KeyStore classKS, java.lang.String ckAlias, java.security.KeyStore objectKS, java.lang.String okAlias) throws java.security.KeyStoreException
ks1
- the KeyStore that contains a certificate of the trusted class keyalias1
- the alias of the certificate of the trusted class key in ks1ks2
- the KeyStore that contains a certificate of the trusted object keyalias2
- the alias of the certificate of the trusted object key in ks2Method Detail |
public java.lang.Object lookupSigned(java.lang.String proxyAddress) throws java.rmi.NotBoundException, VerificationFailureException, java.io.IOException, java.lang.ClassNotFoundException
proxyAddress
- the address of the signed proxypublic static final java.security.KeyStore loadKeyStore(java.lang.String type, java.lang.String filename, java.lang.String icword) throws java.io.FileNotFoundException, java.io.IOException, java.security.KeyStoreException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
type
- the type of the key store to load, e.g., JKS, jceks, etc.filename
- the name of the key store fileicword
- the word for checking the integrity of the key store;
when it is null, no check is performedpublic static final java.security.KeyStore loadKeyStore(java.lang.String type, java.io.FileInputStream in, char[] icchars) throws java.io.IOException, java.security.KeyStoreException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
type
- the type of the key store to load, e.g., JKS, jceks, etc.in
- the input stream of the keystoreicchars
- the word for checking the integrity of the key store;
when it is null, no check is performed.public static final java.security.KeyStore loadKeyStore(java.lang.String type, java.lang.String provider, java.lang.String filename, java.lang.String icword) throws java.io.FileNotFoundException, java.io.IOException, java.security.KeyStoreException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
type
- the type of the key store to load, e.g., JKS, jceks, etc.provider
- the name of the providerfilename
- the name of the key store fileicword
- the word for checking the integrity of the key store;
when it is null, no check is performedpublic static final java.security.KeyStore loadKeyStore(java.lang.String type, java.lang.String provider, java.io.FileInputStream in, char[] icchars) throws java.io.IOException, java.security.KeyStoreException, java.security.NoSuchProviderException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
type
- the type of the key store to load, e.g., JKS, jceks, etc.provider
- the name of the providerin
- the input stream of the keystoreicchars
- the word for checking the integrity of the key store;
when it is null, no check is performed
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |