[prev in list] [next in list] [prev in thread] [next in thread]
List: bouncycastle-crypto-dev
Subject: Re: [dev-crypto] KeySize
From: Greg Stark <ghstark () gmail ! com>
Date: 2011-06-01 22:46:42
Message-ID: BANLkTimCWYmK6X_rgWP65snjt=A=e_ffVQ () mail ! gmail ! com
[Download RAW message or body]
import java.security.interfaces.RSAKey;
import org.bouncycastle.jce.provider.X509CertificateObject;
X509Certificate x509;
RSAKey rsaKey = (RSAKey) (x509.getPublicKey());
int keySize = rsaKey.getModulus().bitLength();
On Wed, Jun 1, 2011 at 2:01 PM, Smith, Bill (Tridium)
<bsmith@tridium.com> wrote:
>
> Given a reference to an X509Certificate object, how do you extract the
> keysize?
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic