org.cryptacular.adapter.WrappedECPrivateKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* 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