@Inject public BlobCrypterSecurityTokenCodec(ContainerConfig config) { try { for (String container : config.getContainers()) { String keyFile = config.getString(container, SECURITY_TOKEN_KEY_FILE); if (keyFile != null) { BlobCrypter crypter = loadCrypterFromFile(new File(keyFile)); crypters.put(container, crypter); } String domain = config.getString(container, SIGNED_FETCH_DOMAIN); domains.put(container, domain); } } catch (IOException e) { // Someone specified securityTokenKeyFile, but we couldn't load the key. That merits killing // the server. throw new RuntimeException(e); } }
@Inject public BlobCrypterSecurityTokenCodec(ContainerConfig config) { try { for (String container : config.getContainers()) { String keyFile = config.getString(container, SECURITY_TOKEN_KEY_FILE); if (keyFile != null) { BlobCrypter crypter = loadCrypterFromFile(new File(keyFile)); crypters.put(container, crypter); } String domain = config.getString(container, SIGNED_FETCH_DOMAIN); domains.put(container, domain); } } catch (IOException e) { // Someone specified securityTokenKeyFile, but we couldn't load the key. That merits killing // the server. throw new RuntimeException(e); } }