Class SecurityTestUtils
java.lang.Object
com.google.api.client.testing.util.SecurityTestUtils
- Since:
- 1.14
-
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 RSAPrivateKey
Returns a new sample RSA private key that matchesnewRsaPublicKey()
.static RSAPublicKey
Returns 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
-