Class ECDSAVariationsAdapter


  • class ECDSAVariationsAdapter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String BASE_ALGORITHM_NAME  
      private static org.slf4j.Logger log  
      static java.util.Map<java.lang.String,​java.lang.String> NIST_CURVES_NAMES  
      static java.util.Map<java.lang.String,​java.lang.String> SUPPORTED_CURVES  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static int fieldSizeFromKey​(java.security.interfaces.ECKey ecPublicKey)  
      (package private) static boolean isECKeyWithFieldSize​(java.security.Key key, int fieldSize)  
      (package private) static java.security.PublicKey readPubKeyFromBuffer​(Buffer<?> buf, java.lang.String variation)  
      (package private) static void writePubKeyContentsIntoBuffer​(java.security.PublicKey pk, Buffer<?> buf)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BASE_ALGORITHM_NAME

        private static final java.lang.String BASE_ALGORITHM_NAME
        See Also:
        Constant Field Values
      • log

        private static final org.slf4j.Logger log
      • SUPPORTED_CURVES

        public static final java.util.Map<java.lang.String,​java.lang.String> SUPPORTED_CURVES
      • NIST_CURVES_NAMES

        public static final java.util.Map<java.lang.String,​java.lang.String> NIST_CURVES_NAMES
    • Constructor Detail

      • ECDSAVariationsAdapter

        ECDSAVariationsAdapter()
    • Method Detail

      • readPubKeyFromBuffer

        static java.security.PublicKey readPubKeyFromBuffer​(Buffer<?> buf,
                                                            java.lang.String variation)
                                                     throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • writePubKeyContentsIntoBuffer

        static void writePubKeyContentsIntoBuffer​(java.security.PublicKey pk,
                                                  Buffer<?> buf)
      • isECKeyWithFieldSize

        static boolean isECKeyWithFieldSize​(java.security.Key key,
                                            int fieldSize)
      • fieldSizeFromKey

        private static int fieldSizeFromKey​(java.security.interfaces.ECKey ecPublicKey)