Class RsaKeyGenerator
java.lang.Object
de.bund.bva.isyfact.security.test.RsaKeyGenerator
Class to generate RSA key pairs. It is use by the
EmbeddedOidcProviderStub to generate key pairs if they are not
explicitly provided. It can be called via the main(String[]) method to create key pairs for a static configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyPairdecodeKeyPair(String encodedPublicKey, String encodedPrivateKey) static PrivateKeydecodePrivateKey(String encodedKey) static PublicKeydecodePublicKey(String encodedKey) static Stringstatic StringencodePublicKey(PublicKey key) static voidStar method to create a public/private RSA key pair.
-
Constructor Details
-
RsaKeyGenerator
public RsaKeyGenerator()
-
-
Method Details
-
getKeyPair
-
getPublicKey
-
getPrivateKey
-
encodePublicKey
-
decodePublicKey
-
encodePrivateKey
-
decodePrivateKey
-
decodeKeyPair
-
main
Star method to create a public/private RSA key pair.- Parameters:
args- command line arguments (ignored)
-