Package net.i2p.crypto
Class DirKeyRing
- java.lang.Object
-
- net.i2p.crypto.DirKeyRing
-
-
Constructor Summary
Constructors Constructor Description DirKeyRing(File baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKey
getKey(String keyName, String scope, SigType type)
Cert must be in the file (escaped keyName).crt, and have a CN == keyName.void
setKey(String keyName, String scope, PublicKey key)
Unimplemented, unused.
-
-
-
Constructor Detail
-
DirKeyRing
public DirKeyRing(File baseDir)
-
-
Method Detail
-
getKey
public PublicKey getKey(String keyName, String scope, SigType type) throws GeneralSecurityException, IOException
Cert must be in the file (escaped keyName).crt, and have a CN == keyName. This DOES do a revocation check. CN check unsupported on Android.- Specified by:
getKey
in interfaceKeyRing
scope
- a domain identifier, indicating router update, reseed, etc.- Returns:
- null if file doesn't exist, throws on all other errors
- Throws:
GeneralSecurityException
IOException
-
-