|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.crypto.SigUtil
public class SigUtil
Utilities for Signing keys and Signatures
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PublicKey toJavaKey(SigningPublicKey pk) throws GeneralSecurityException
GeneralSecurityException
public static PrivateKey toJavaKey(SigningPrivateKey pk) throws GeneralSecurityException
GeneralSecurityException
public static SigningPublicKey fromJavaKey(PublicKey pk) throws GeneralSecurityException
pk
- JAVA key!
IllegalArgumentException
- on unknown type
GeneralSecurityException
public static SigningPublicKey fromJavaKey(PublicKey pk, SigType type) throws GeneralSecurityException
pk
- JAVA key!
GeneralSecurityException
public static SigningPrivateKey fromJavaKey(PrivateKey pk) throws GeneralSecurityException
pk
- JAVA key!
IllegalArgumentException
- on unknown type
GeneralSecurityException
public static SigningPrivateKey fromJavaKey(PrivateKey pk, SigType type) throws GeneralSecurityException
pk
- JAVA key!
GeneralSecurityException
public static ECPublicKey toJavaECKey(SigningPublicKey pk) throws GeneralSecurityException
GeneralSecurityException
public static ECPrivateKey toJavaECKey(SigningPrivateKey pk) throws GeneralSecurityException
GeneralSecurityException
public static SigningPublicKey fromJavaKey(ECPublicKey pk, SigType type) throws GeneralSecurityException
GeneralSecurityException
public static SigningPrivateKey fromJavaKey(ECPrivateKey pk, SigType type) throws GeneralSecurityException
GeneralSecurityException
public static EdDSAPublicKey toJavaEdDSAKey(SigningPublicKey pk) throws GeneralSecurityException
GeneralSecurityException
public static EdDSAPrivateKey toJavaEdDSAKey(SigningPrivateKey pk) throws GeneralSecurityException
GeneralSecurityException
public static SigningPublicKey fromJavaKey(EdDSAPublicKey pk, SigType type) throws GeneralSecurityException
GeneralSecurityException
public static SigningPrivateKey fromJavaKey(EdDSAPrivateKey pk, SigType type) throws GeneralSecurityException
GeneralSecurityException
public static DSAPublicKey toJavaDSAKey(SigningPublicKey pk) throws GeneralSecurityException
GeneralSecurityException
public static DSAPrivateKey toJavaDSAKey(SigningPrivateKey pk) throws GeneralSecurityException
GeneralSecurityException
public static SigningPublicKey fromJavaKey(DSAPublicKey pk) throws GeneralSecurityException
GeneralSecurityException
public static SigningPrivateKey fromJavaKey(DSAPrivateKey pk) throws GeneralSecurityException
GeneralSecurityException
public static RSAPublicKey toJavaRSAKey(SigningPublicKey pk) throws GeneralSecurityException
GeneralSecurityException
public static RSAPrivateKey toJavaRSAKey(SigningPrivateKey pk) throws GeneralSecurityException
GeneralSecurityException
public static SigningPublicKey fromJavaKey(RSAPublicKey pk, SigType type) throws GeneralSecurityException
GeneralSecurityException
public static SigningPrivateKey fromJavaKey(RSAPrivateKey pk, SigType type) throws GeneralSecurityException
GeneralSecurityException
public static byte[] toJavaSig(Signature sig)
public static Signature fromJavaSig(byte[] asn, SigType type) throws SignatureException
asn
- ASN.1 representation
SignatureException
public static PublicKey importJavaPublicKey(File file, SigType type) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public static PrivateKey importJavaPrivateKey(File file, SigType type) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public static byte[] rectify(BigInteger bi, int len) throws InvalidKeyException
bi
- non-negative
InvalidKeyException
public static void clearCaches()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |