aQute.libg.cryptography
Class Crypto

java.lang.Object
  extended by aQute.libg.cryptography.Crypto

public class Crypto
extends Object


Constructor Summary
Crypto()
           
 
Method Summary
static
<T> T
fromString(String spec, Class<T> c)
           
static
<T extends Digest>
Signer<T>
signer(PrivateKey key, Digester<T> digester)
           
static String toString(Object key)
           
static Verifier verifier(PublicKey key, Digest digest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Crypto

public Crypto()
Method Detail

fromString

public static <T> T fromString(String spec,
                               Class<T> c)
                    throws Exception
Type Parameters:
T -
Parameters:
spec -
Returns:
Throws:
Exception

toString

public static String toString(Object key)

signer

public static <T extends Digest> Signer<T> signer(PrivateKey key,
                                                  Digester<T> digester)
                                       throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

verifier

public static Verifier verifier(PublicKey key,
                                Digest digest)
                         throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException


Copyright © 2012 aQute SARL. All Rights Reserved.