@Test public void validateKey_empty() throws Exception { try { manager.validateKey(EcdsaPrivateKey.getDefaultInstance()); fail(); } catch (GeneralSecurityException e) { } }
@Override public void validateKey(EcdsaPrivateKey privKey) throws GeneralSecurityException { Validators.validateVersion(privKey.getVersion(), getVersion()); SigUtil.validateEcdsaParams(privKey.getPublicKey().getParams()); }
EcdsaSignKeyManager extends PrivateKeyTypeManager<EcdsaPrivateKey, EcdsaPublicKey> { @Override public void validateKey(EcdsaPrivateKey privKey) throws GeneralSecurityException { Validators.validateVersion(privKey.getVersion(), getVersion()); SigUtil.validateEcdsaParams(privKey.getPublicKey().getParams()); } }
EcdsaSignKeyManager extends PrivateKeyTypeManager<EcdsaPrivateKey, EcdsaPublicKey> { @Override public void validateKey(EcdsaPrivateKey privKey) throws GeneralSecurityException { Validators.validateVersion(privKey.getVersion(), getVersion()); SigUtil.validateEcdsaParams(privKey.getPublicKey().getParams()); } EcdsaSignKeyManager(); }
EcdsaSignKeyManager extends PrivateKeyTypeManager<EcdsaPrivateKey, EcdsaPublicKey> { @Override public void validateKey(EcdsaPrivateKey privKey) throws GeneralSecurityException { Validators.validateVersion(privKey.getVersion(), getVersion()); SigUtil.validateEcdsaParams(privKey.getPublicKey().getParams()); } EcdsaSignKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override EcdsaPublicKey getPublicKey(EcdsaPrivateKey key); @Override KeyMaterialType keyMaterialType(); @Override EcdsaPrivateKey parseKey(ByteString byteString); @Override void validateKey(EcdsaPrivateKey privKey); @Override KeyFactory<EcdsaKeyFormat, EcdsaPrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate ecdsaP256Template(); static final KeyTemplate rawEcdsaP256Template(); static KeyTemplate createKeyTemplate(
      HashType hashType,
      EllipticCurveType curve,
      EcdsaSignatureEncoding encoding,
      KeyTemplate.OutputPrefixType prefixType); }
EcdsaSignKeyManager extends PrivateKeyTypeManager<EcdsaPrivateKey, EcdsaPublicKey> { @Override public void validateKey(EcdsaPrivateKey privKey) throws GeneralSecurityException { Validators.validateVersion(privKey.getVersion(), getVersion()); SigUtil.validateEcdsaParams(privKey.getPublicKey().getParams()); } EcdsaSignKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override EcdsaPublicKey getPublicKey(EcdsaPrivateKey key); @Override KeyMaterialType keyMaterialType(); @Override EcdsaPrivateKey parseKey(ByteString byteString); @Override void validateKey(EcdsaPrivateKey privKey); @Override KeyFactory<EcdsaKeyFormat, EcdsaPrivateKey> keyFactory(); static void registerPair(boolean newKeyAllowed); static final KeyTemplate ecdsaP256Template(); static final KeyTemplate rawEcdsaP256Template(); static KeyTemplate createKeyTemplate(
      HashType hashType,
      EllipticCurveType curve,
      EcdsaSignatureEncoding encoding,
      KeyTemplate.OutputPrefixType prefixType);  }