Class Crypto


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

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern RSA_PRIVATE  
      private static java.util.regex.Pattern RSA_PUBLIC  
    • 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
    • Field Detail

      • RSA_PRIVATE

        private static final java.util.regex.Pattern RSA_PRIVATE
      • RSA_PUBLIC

        private static final java.util.regex.Pattern RSA_PUBLIC
    • 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