de.flexiprovider.ec
Class ECTools

java.lang.Object
  |
  +--de.flexiprovider.ec.ECTools

public final class ECTools
extends java.lang.Object


Method Summary
static boolean isValidPublicKey(ECPublicKey ecPubKey)
          Check if the given ECPublicKey is valid.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValidPublicKey

public static boolean isValidPublicKey(ECPublicKey ecPubKey)
                                throws InvalidKeyException
Check if the given ECPublicKey is valid.
Parameters:
ecPubKey - the ECPublicKey
Returns:
true if this key is a valid ECPublicKey, false otherwise
Throws:
InvalidKeyException - if the public key has not been initialized with EC domain parameters and thus is only available in encoded form.