@Test public void validateKey_valid() throws Exception { EciesAeadHkdfPrivateKey privateKey = createValidPrivateKey(); publicManager.validateKey(privateManager.getPublicKey(privateKey)); }
@Override public void validateKey(EciesAeadHkdfPublicKey key) throws GeneralSecurityException { Validators.validateVersion(key.getVersion(), getVersion()); HybridUtil.validate(key.getParams()); }
EciesAeadHkdfPublicKeyManager extends KeyTypeManager<EciesAeadHkdfPublicKey> { @Override public void validateKey(EciesAeadHkdfPublicKey key) throws GeneralSecurityException { Validators.validateVersion(key.getVersion(), getVersion()); HybridUtil.validate(key.getParams()); } }
EciesAeadHkdfPublicKeyManager extends KeyTypeManager<EciesAeadHkdfPublicKey> { @Override public void validateKey(EciesAeadHkdfPublicKey key) throws GeneralSecurityException { Validators.validateVersion(key.getVersion(), getVersion()); HybridUtil.validate(key.getParams()); } EciesAeadHkdfPublicKeyManager(); }
EciesAeadHkdfPublicKeyManager extends KeyTypeManager<EciesAeadHkdfPublicKey> { @Override public void validateKey(EciesAeadHkdfPublicKey key) throws GeneralSecurityException { Validators.validateVersion(key.getVersion(), getVersion()); HybridUtil.validate(key.getParams()); } EciesAeadHkdfPublicKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override EciesAeadHkdfPublicKey parseKey(ByteString byteString); @Override void validateKey(EciesAeadHkdfPublicKey key); }
EciesAeadHkdfPublicKeyManager extends KeyTypeManager<EciesAeadHkdfPublicKey> { @Override public void validateKey(EciesAeadHkdfPublicKey key) throws GeneralSecurityException { Validators.validateVersion(key.getVersion(), getVersion()); HybridUtil.validate(key.getParams()); } EciesAeadHkdfPublicKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override EciesAeadHkdfPublicKey parseKey(ByteString byteString); @Override void validateKey(EciesAeadHkdfPublicKey key);  }