Class SelfKeyTestValidators


  • public final class SelfKeyTestValidators
    extends java.lang.Object
    Self Key tests validation helper methods.
    • Method Detail

      • validateRsaSsaPss

        public static final void validateRsaSsaPss​(java.security.interfaces.RSAPrivateCrtKey privateKey,
                                                   java.security.interfaces.RSAPublicKey publicKey,
                                                   Enums.HashType sigHash,
                                                   Enums.HashType mgf1Hash,
                                                   int saltLength)
                                            throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • validateRsaSsaPkcs1

        public static final void validateRsaSsaPkcs1​(java.security.interfaces.RSAPrivateCrtKey privateKey,
                                                     java.security.interfaces.RSAPublicKey publicKey,
                                                     Enums.HashType sigHash)
                                              throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • validateEcdsa

        public static final void validateEcdsa​(java.security.interfaces.ECPrivateKey privateKey,
                                               java.security.interfaces.ECPublicKey publicKey,
                                               Enums.HashType hash,
                                               EllipticCurves.EcdsaEncoding encoding)
                                        throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException