org.cryptacular.adapter.WrappedDSAPublicKey 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.DSAPublicKey;
import org.bouncycastle.crypto.params.DSAPublicKeyParameters;
/**
* JCE/JDK DSA public key that wraps the corresponding BC DSA public key type, {@link DSAPublicKeyParameters}.
*
* @author Middleware Services
*/
public class WrappedDSAPublicKey extends AbstractWrappedDSAKey implements DSAPublicKey
{
/**
* Creates a new instance that wraps the given key.
*
* @param wrappedKey DSA key to wrap.
*/
public WrappedDSAPublicKey(final DSAPublicKeyParameters wrappedKey)
{
super(wrappedKey);
}
@Override
public BigInteger getY()
{
return delegate.getY();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy