Class SecurityTestUtils (1.45.0)

public final class SecurityTestUtils

Beta
Utilities and constants related to testing the library util package.

Inheritance

java.lang.Object > SecurityTestUtils

Static Methods

newEncodedRsaPrivateKeyBytes()

public static byte[] newEncodedRsaPrivateKeyBytes()

Returns a new copy of a sample encoded RSA private key that matches #newEncodedRsaPublicKeyBytes().

Returns
Type Description
byte[]

newEncodedRsaPublicKeyBytes()

public static byte[] newEncodedRsaPublicKeyBytes()

Returns a new copy of a sample encoded public key that matches #newEncodedRsaPrivateKeyBytes().

Returns
Type Description
byte[]

newRsaPrivateKey()

public static RSAPrivateKey newRsaPrivateKey()

Returns a new sample RSA private key that matches #newRsaPublicKey().

Returns
Type Description
RSAPrivateKey
Exceptions
Type Description
GeneralSecurityException

newRsaPublicKey()

public static RSAPublicKey newRsaPublicKey()

Returns a new sample RSA public key that matches #newRsaPrivateKey().

Returns
Type Description
RSAPublicKey
Exceptions
Type Description
GeneralSecurityException