Modifier and Type | Method and Description |
---|---|
static byte[] |
newEncodedRsaPrivateKeyBytes()
Returns a new copy of a sample encoded RSA private key that matches
newEncodedRsaPublicKeyBytes() . |
static byte[] |
newEncodedRsaPublicKeyBytes()
Returns a new copy of a sample encoded public key that matches
newEncodedRsaPrivateKeyBytes() . |
static RSAPrivateKey |
newRsaPrivateKey()
Returns a new sample RSA private key that matches
newRsaPublicKey() . |
static RSAPublicKey |
newRsaPublicKey()
Returns a new sample RSA public key that matches
newRsaPrivateKey() . |
public static byte[] newEncodedRsaPrivateKeyBytes()
newEncodedRsaPublicKeyBytes()
.public static byte[] newEncodedRsaPublicKeyBytes()
newEncodedRsaPrivateKeyBytes()
.public static RSAPrivateKey newRsaPrivateKey() throws GeneralSecurityException
newRsaPublicKey()
.GeneralSecurityException
public static RSAPublicKey newRsaPublicKey() throws GeneralSecurityException
newRsaPrivateKey()
.GeneralSecurityException
Copyright © 2011–2022 Google. All rights reserved.