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

org.cryptacular.adapter.WrappedRSAPublicKey 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.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