class XChaCha20Poly1305KeyManager extends KeyTypeManager<XChaCha20Poly1305Key> {

  @Override
  public void validateKey(XChaCha20Poly1305Key key) throws GeneralSecurityException {
    Validators.validateVersion(key.getVersion(), getVersion());
    if (key.getKeyValue().size() != KEY_SIZE_IN_BYTES) {
      throw new GeneralSecurityException("invalid XChaCha20Poly1305Key: incorrect key length");
    }
  }

    XChaCha20Poly1305KeyManager();

}