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