|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.distinct.rpc.PublicKeyDB
|
+--com.distinct.rpc.PublicKeyDBYP
Connection to a NIS (Yellow Pages) publickey database for secure RPC keys.
| Constructor Summary | |
PublicKeyDBYP(java.lang.String domainname)
Creates an object that is connected to a NIS publickey database. |
|
PublicKeyDBYP(java.lang.String domainname,
java.lang.String servername)
Creates an object that is connected to a NIS publickey database. |
|
| Method Summary | |
java.lang.String |
getFirstName()
Method for enumerating the stored name. |
java.lang.String |
getNextName()
Method for enumerating the stored name. |
java.lang.String |
getPublicKey(java.lang.String name)
Returns the public key of an authority. |
java.lang.String |
getSecretKey(java.lang.String name)
Returns the encrypted private key of an authority. |
| Methods inherited from class com.distinct.rpc.PublicKeyDB |
doLogin, doLogin, getNetname, getPassword |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PublicKeyDBYP(java.lang.String domainname)
throws RPCError
domainname - The name of the domain.
RPCError - Thrown if something fails while connecting to the NIS.
public PublicKeyDBYP(java.lang.String domainname,
java.lang.String servername)
throws RPCError
domainname - The name of the domain.servername - The name of a machine that runs a ypbind server
(Probably the server you want to connect to).
RPCError - Thrown if something fails while connecting to the NIS.| Method Detail |
public java.lang.String getPublicKey(java.lang.String name)
throws RPCError
getPublicKey in class PublicKeyDBname - The name of the authority.
RPCError - Thrown if the key is not found in the database.
public java.lang.String getSecretKey(java.lang.String name)
throws RPCError
getSecretKey in class PublicKeyDBname - The name of the authority.
RPCError - Thrown if the key is not found in the database.public java.lang.String getFirstName()
getFirstName in class PublicKeyDBpublic java.lang.String getNextName()
getNextName in class PublicKeyDB
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||