Class Crypto


  • public class Crypto
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Crypto()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T fromString​(java.lang.String spec, java.lang.Class<T> c)  
      static java.lang.String toString​(java.lang.Object key)  
      static Verifier verifier​(java.security.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​(java.lang.String spec,
                                       java.lang.Class<T> c)
                                throws java.lang.Exception
        Type Parameters:
        T -
        Parameters:
        spec -
        Returns:
        key
        Throws:
        java.lang.Exception
      • toString

        public static java.lang.String toString​(java.lang.Object key)
      • verifier

        public static Verifier verifier​(java.security.PublicKey key,
                                        Digest digest)
                                 throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException