@Test public void aaaTestInitialization() throws Exception { try { Registry.getCatalogue("tinkpublickeysign"); fail("Expected GeneralSecurityException"); } catch (GeneralSecurityException e) { assertThat(e.toString()).contains("no catalogue found"); assertThat(e.toString()).contains("SignatureConfig.registe"); } try { Registry.getCatalogue("tinkpublickeyverify"); fail("Expected GeneralSecurityException"); } catch (GeneralSecurityException e) { assertThat(e.toString()).contains("no catalogue found"); assertThat(e.toString()).contains("SignatureConfig.registe"); } String typeUrl = "type.googleapis.com/google.crypto.tink.EcdsaPrivateKey"; try { Registry.getUntypedKeyManager(typeUrl); fail("Expected GeneralSecurityException"); } catch (GeneralSecurityException e) { assertThat(e.toString()).contains("No key manager found"); } SignatureConfig.register(); Registry.getKeyManager(typeUrl, PublicKeySign.class); SignatureConfig.register(); }
public static void register() throws GeneralSecurityException { EcdsaSignKeyManager.registerPair( true); Ed25519PrivateKeyManager.registerPair( true); RsaSsaPkcs1SignKeyManager.registerPair( true); RsaSsaPssSignKeyManager.registerPair( true); PublicKeySignWrapper.register(); PublicKeyVerifyWrapper.register(); }
SignatureConfig { public static void register() throws GeneralSecurityException { EcdsaSignKeyManager.registerPair( true); Ed25519PrivateKeyManager.registerPair( true); RsaSsaPkcs1SignKeyManager.registerPair( true); RsaSsaPssSignKeyManager.registerPair( true); PublicKeySignWrapper.register(); PublicKeyVerifyWrapper.register(); } }
SignatureConfig { public static void register() throws GeneralSecurityException { EcdsaSignKeyManager.registerPair( true); Ed25519PrivateKeyManager.registerPair( true); RsaSsaPkcs1SignKeyManager.registerPair( true); RsaSsaPssSignKeyManager.registerPair( true); PublicKeySignWrapper.register(); PublicKeyVerifyWrapper.register(); }  }
SignatureConfig { public static void register() throws GeneralSecurityException { EcdsaSignKeyManager.registerPair( true); Ed25519PrivateKeyManager.registerPair( true); RsaSsaPkcs1SignKeyManager.registerPair( true); RsaSsaPssSignKeyManager.registerPair( true); PublicKeySignWrapper.register(); PublicKeyVerifyWrapper.register(); }  @Deprecated static void init(); static void register(); }
SignatureConfig { public static void register() throws GeneralSecurityException { EcdsaSignKeyManager.registerPair( true); Ed25519PrivateKeyManager.registerPair( true); RsaSsaPkcs1SignKeyManager.registerPair( true); RsaSsaPssSignKeyManager.registerPair( true); PublicKeySignWrapper.register(); PublicKeyVerifyWrapper.register(); }  @Deprecated static void init(); static void register(); static final String ECDSA_PUBLIC_KEY_TYPE_URL; static final String ECDSA_PRIVATE_KEY_TYPE_URL; static final String ED25519_PUBLIC_KEY_TYPE_URL; static final String ED25519_PRIVATE_KEY_TYPE_URL; static final String RSA_PKCS1_PRIVATE_KEY_TYPE_URL; static final String RSA_PKCS1_PUBLIC_KEY_TYPE_URL; @Deprecated
  static final RegistryConfig TINK_1_0_0; @Deprecated
  static final RegistryConfig TINK_1_1_0; static final RegistryConfig LATEST; }