test_class.file: common/src/test/java/org/keycloak/common/util/KeyUtilsTest.java
test_class.identifier: KeyUtilsTest
test_case.body: @Test
      public void loadSecretKey() {
          byte[] secretBytes = new byte[32];
          ThreadLocalRandom.current().nextBytes(secretBytes);
          SecretKeySpec expected = new SecretKeySpec(secretBytes, "HmacSHA256");
          SecretKey actual = KeyUtils.loadSecretKey(secretBytes, "HmacSHA256");
          assertEquals(expected.getAlgorithm(), actual.getAlgorithm());
          assertArrayEquals(expected.getEncoded(), actual.getEncoded());
      }
test_case.class_method_signature: KeyUtilsTest.loadSecretKey()
test_case.full_signature: @Test public void loadSecretKey()
test_case.identifier: loadSecretKey
test_case.invocations: nextBytes current loadSecretKey assertEquals getAlgorithm getAlgorithm assertArrayEquals getEncoded getEncoded
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void loadSecretKey()
focal_class.declarator: DEFAULT_MESSAGE_DIGEST = "SHA-256"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_MESSAGE_DIGEST = "SHA-256";
focal_class.type: String
focal_class.var_name: DEFAULT_MESSAGE_DIGEST
focal_class.file: common/src/main/java/org/keycloak/common/util/KeyUtils.java
focal_class.identifier: KeyUtils
focal_class.class_method_signature: KeyUtils.KeyUtils()
focal_class.full_signature: private  KeyUtils()
focal_class.identifier: KeyUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  KeyUtils()
focal_class.class_method_signature: KeyUtils.loadSecretKey(byte[] secret, String javaAlgorithmName)
focal_class.full_signature: public static SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName)
focal_class.identifier: loadSecretKey
focal_class.modifiers: public static
focal_class.parameters: (byte[] secret, String javaAlgorithmName)
focal_class.return: SecretKey
focal_class.signature: SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName)
focal_class.class_method_signature: KeyUtils.generateRsaKeyPair(int keysize)
focal_class.full_signature: public static KeyPair generateRsaKeyPair(int keysize)
focal_class.identifier: generateRsaKeyPair
focal_class.modifiers: public static
focal_class.parameters: (int keysize)
focal_class.return: KeyPair
focal_class.signature: KeyPair generateRsaKeyPair(int keysize)
focal_class.class_method_signature: KeyUtils.extractPublicKey(PrivateKey key)
focal_class.full_signature: public static PublicKey extractPublicKey(PrivateKey key)
focal_class.identifier: extractPublicKey
focal_class.modifiers: public static
focal_class.parameters: (PrivateKey key)
focal_class.return: PublicKey
focal_class.signature: PublicKey extractPublicKey(PrivateKey key)
focal_class.class_method_signature: KeyUtils.createKeyId(Key key)
focal_class.full_signature: public static String createKeyId(Key key)
focal_class.identifier: createKeyId
focal_class.modifiers: public static
focal_class.parameters: (Key key)
focal_class.return: String
focal_class.signature: String createKeyId(Key key)
focal_method.body: public static SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName) {
          return new SecretKeySpec(secret, javaAlgorithmName);
      }
focal_method.class_method_signature: KeyUtils.loadSecretKey(byte[] secret, String javaAlgorithmName)
focal_method.full_signature: public static SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName)
focal_method.identifier: loadSecretKey
focal_method.modifiers: public static
focal_method.parameters: (byte[] secret, String javaAlgorithmName)
focal_method.return: SecretKey
focal_method.signature: SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName)