Class PublicKeyValidator

java.lang.Object
io.getlime.security.powerauth.crypto.lib.util.PublicKeyValidator

public class PublicKeyValidator extends Object
Public key validations which complement validations in Bouncy Castle library.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint point)
    Validate the public key: check that the EC point is not the point at infinity check that point order matches the order defined in EC curve

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PublicKeyValidator

      public PublicKeyValidator()
  • Method Details

    • validate

      public void validate(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint point) throws GenericCryptoException
      Validate the public key:
      • check that the EC point is not the point at infinity
      • check that point order matches the order defined in EC curve
      Parameters:
      curve - EC curve.
      point - EC point.
      Throws:
      GenericCryptoException - In case the EC point validation fails.