Class SecurityTestUtils
java.lang.Object
com.google.api.client.testing.util.SecurityTestUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final byte[] -
Constructor Summary
Constructors -
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().
-
Field Details
-
ENCODED_PRIVATE_KEY
private static final byte[] ENCODED_PRIVATE_KEY -
ENCODED_PUBLIC_KEY
private static final byte[] ENCODED_PUBLIC_KEY
-
-
Constructor Details
-
SecurityTestUtils
private SecurityTestUtils()
-
-
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
-