test_class.file: base/lang/src/test/java/leap/lang/security/RsaTest.java
test_class.identifier: RsaTest
test_class.superclass: extends TestBase
test_case.body: @Test
      public void testRsa() {
          
          RsaKeyPair kp = RSA.generateKeyPair();
          
          String privateKeyBase64 = kp.getBase64PrivateKey();
          String publicKeyBase64  = kp.getBase64PublicKey();
  
          RSAPrivateKey privateKey = RSA.decodePrivateKey(privateKeyBase64);
          RSAPublicKey  publicKey  = RSA.decodePublicKey(publicKeyBase64);
          
          assertEquals(privateKeyBase64, RSA.encodePrivateKey(privateKey));
          assertEquals(publicKeyBase64,  RSA.encodePublicKey(publicKey));
          
      }
test_case.class_method_signature: RsaTest.testRsa()
test_case.full_signature: @Test public void testRsa()
test_case.identifier: testRsa
test_case.invocations: generateKeyPair getBase64PrivateKey getBase64PublicKey decodePrivateKey decodePublicKey assertEquals encodePrivateKey assertEquals encodePublicKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRsa()
focal_class.declarator: ALGORITHM        = "RSA"
focal_class.modifier: public static final
focal_class.original_string: public static final String      ALGORITHM        = "RSA";
focal_class.type: String
focal_class.var_name: ALGORITHM
focal_class.declarator: DEFAULT_KEY_SIZE = 1024
focal_class.modifier: public static final
focal_class.original_string: public static final int         DEFAULT_KEY_SIZE = 1024;
focal_class.type: int
focal_class.var_name: DEFAULT_KEY_SIZE
focal_class.declarator: g
focal_class.modifier: private static
focal_class.original_string: private static KeyPairGenerator g;
focal_class.type: KeyPairGenerator
focal_class.var_name: g
focal_class.declarator: f
focal_class.modifier: private static
focal_class.original_string: private static KeyFactory       f;
focal_class.type: KeyFactory
focal_class.var_name: f
focal_class.file: base/lang/src/main/java/leap/lang/security/RSA.java
focal_class.identifier: RSA
focal_class.class_method_signature: RSA.generateKeyPair()
focal_class.full_signature: public static RsaKeyPair generateKeyPair()
focal_class.identifier: generateKeyPair
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: RsaKeyPair
focal_class.signature: RsaKeyPair generateKeyPair()
focal_class.class_method_signature: RSA.encodePrivateKey(RSAPrivateKey key)
focal_class.full_signature: public static String encodePrivateKey(RSAPrivateKey key)
focal_class.identifier: encodePrivateKey
focal_class.modifiers: public static
focal_class.parameters: (RSAPrivateKey key)
focal_class.return: String
focal_class.signature: String encodePrivateKey(RSAPrivateKey key)
focal_class.class_method_signature: RSA.encodePublicKey(RSAPublicKey key)
focal_class.full_signature: public static String encodePublicKey(RSAPublicKey key)
focal_class.identifier: encodePublicKey
focal_class.modifiers: public static
focal_class.parameters: (RSAPublicKey key)
focal_class.return: String
focal_class.signature: String encodePublicKey(RSAPublicKey key)
focal_class.class_method_signature: RSA.decodePrivateKey(String base64)
focal_class.full_signature: public static RSAPrivateKey decodePrivateKey(String base64)
focal_class.identifier: decodePrivateKey
focal_class.modifiers: public static
focal_class.parameters: (String base64)
focal_class.return: RSAPrivateKey
focal_class.signature: RSAPrivateKey decodePrivateKey(String base64)
focal_class.class_method_signature: RSA.decodePublicKey(String base64)
focal_class.full_signature: public static RSAPublicKey decodePublicKey(String base64)
focal_class.identifier: decodePublicKey
focal_class.modifiers: public static
focal_class.parameters: (String base64)
focal_class.return: RSAPublicKey
focal_class.signature: RSAPublicKey decodePublicKey(String base64)
focal_class.class_method_signature: RSA.RSA()
focal_class.full_signature: protected  RSA()
focal_class.identifier: RSA
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  RSA()
focal_method.body: protected RSA() {
          
      }
focal_method.class_method_signature: RSA.RSA()
focal_method.full_signature: protected  RSA()
focal_method.identifier: RSA
focal_method.modifiers: protected
focal_method.parameters: ()
focal_method.signature:  RSA()