All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cryptacular.adapter.WrappedECPrivateKey Maven / Gradle / Ivy

There is a newer version: 1.2.7
Show newest version
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular.adapter;

import java.math.BigInteger;
import java.security.interfaces.ECPrivateKey;
import org.bouncycastle.crypto.params.ECPrivateKeyParameters;

/**
 * JCE/JDK EC private key that wraps the corresponding BC EC private key type, {@link ECPrivateKeyParameters}.
 *
 * @author  Middleware Services
 */
public class WrappedECPrivateKey extends AbstractWrappedECKey implements ECPrivateKey
{

  /**
   * Creates a new instance that wraps the given key.
   *
   * @param  wrappedKey  EC key to wrap.
   */
  public WrappedECPrivateKey(final ECPrivateKeyParameters wrappedKey)
  {
    super(wrappedKey);
  }


  @Override
  public BigInteger getS()
  {
    return delegate.getD();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy