Class SecurityTestUtils
java.lang.Object
com.google.api.client.testing.util.SecurityTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Returns a new copy of a sample encoded RSA private key that matchesnewEncodedRsaPublicKeyBytes().static byte[]Returns a new copy of a sample encoded public key that matchesnewEncodedRsaPrivateKeyBytes().static RSAPrivateKeyReturns a new sample RSA private key that matchesnewRsaPublicKey().static RSAPublicKeyReturns a new sample RSA public key that matchesnewRsaPrivateKey().
-
Method Details
-
newEncodedRsaPrivateKeyBytes
public static byte[] newEncodedRsaPrivateKeyBytes()Returns a new copy of a sample encoded RSA private key that matchesnewEncodedRsaPublicKeyBytes(). -
newEncodedRsaPublicKeyBytes
public static byte[] newEncodedRsaPublicKeyBytes()Returns a new copy of a sample encoded public key that matchesnewEncodedRsaPrivateKeyBytes(). -
newRsaPrivateKey
Returns a new sample RSA private key that matchesnewRsaPublicKey().- Throws:
GeneralSecurityException
-
newRsaPublicKey
Returns a new sample RSA public key that matchesnewRsaPrivateKey().- Throws:
GeneralSecurityException
-