@Beta public final class SecurityTestUtils extends java.lang.Object
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 java.security.interfaces.RSAPrivateKey |
newRsaPrivateKey()
Returns a new sample RSA private key that matches
newRsaPublicKey() . |
static java.security.interfaces.RSAPublicKey |
newRsaPublicKey()
Returns a new sample RSA public key that matches
newRsaPrivateKey() . |
public static byte[] newEncodedRsaPrivateKeyBytes()
newEncodedRsaPublicKeyBytes()
.public static byte[] newEncodedRsaPublicKeyBytes()
newEncodedRsaPrivateKeyBytes()
.public static java.security.interfaces.RSAPrivateKey newRsaPrivateKey() throws java.security.GeneralSecurityException
newRsaPublicKey()
.java.security.GeneralSecurityException
public static java.security.interfaces.RSAPublicKey newRsaPublicKey() throws java.security.GeneralSecurityException
newRsaPrivateKey()
.java.security.GeneralSecurityException
Copyright © 2011-2018 Google. All Rights Reserved.