Using Multiple Keys and Key Rotation
除了在加密属性的前缀{cipher},配置服务查询加密文本前面的{name:value}前缀(0-n个)。密钥被传递到TextEncryptorLocator,TextEncryptorLocator可以执行任意的逻辑来为加密定位到TextEncryptor。如果配置了keystore(encrypt.keystore.location),默认的定位器将会在store中寻找密钥。例如
foo:
bar: {cipher}{key:testkey}...