Class SecurityTestUtils
- java.lang.Object
-
- com.google.api.client.testing.util.SecurityTestUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
newEncodedRsaPrivateKeyBytes()
Returns a new copy of a sample encoded RSA private key that matchesnewEncodedRsaPublicKeyBytes()
.static byte[]
newEncodedRsaPublicKeyBytes()
Returns a new copy of a sample encoded public key that matchesnewEncodedRsaPrivateKeyBytes()
.static RSAPrivateKey
newRsaPrivateKey()
Returns a new sample RSA private key that matchesnewRsaPublicKey()
.static RSAPublicKey
newRsaPublicKey()
Returns a new sample RSA public key that matchesnewRsaPrivateKey()
.
-
-
-
Method Detail
-
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
public static RSAPrivateKey newRsaPrivateKey() throws GeneralSecurityException
Returns a new sample RSA private key that matchesnewRsaPublicKey()
.- Throws:
GeneralSecurityException
-
newRsaPublicKey
public static RSAPublicKey newRsaPublicKey() throws GeneralSecurityException
Returns a new sample RSA public key that matchesnewRsaPrivateKey()
.- Throws:
GeneralSecurityException
-
-