{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/34","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/34/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/34/events","html_url":"https://github.com/spring-cloud/spring-cloud-commons/issues/34","id":78854281,"number":34,"title":"VanillaEncryptionConfiguration can't be chosen","user":{"login":"ralfstuckert","id":5688185,"avatar_url":"https://avatars.githubusercontent.com/u/5688185?v=3","gravatar_id":"","url":"https://api.github.com/users/ralfstuckert","html_url":"https://github.com/ralfstuckert","followers_url":"https://api.github.com/users/ralfstuckert/followers","following_url":"https://api.github.com/users/ralfstuckert/following{/other_user}","gists_url":"https://api.github.com/users/ralfstuckert/gists{/gist_id}","starred_url":"https://api.github.com/users/ralfstuckert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralfstuckert/subscriptions","organizations_url":"https://api.github.com/users/ralfstuckert/orgs","repos_url":"https://api.github.com/users/ralfstuckert/repos","events_url":"https://api.github.com/users/ralfstuckert/events{/privacy}","received_events_url":"https://api.github.com/users/ralfstuckert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-21T06:29:26Z","updated_at":"2015-05-21T13:49:48Z","closed_at":"2015-05-21T13:49:48Z","body":"The `VanillaEncryptionConfiguration` provided in class `org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration` is thought to be used, if the `RsaSecretEncryptor` is not available:\r\n\r\n```java\r\n@ConditionalOnMissingClass(name = \"org.springframework.security.rsa.crypto.RsaSecretEncryptor\") \r\nprotected static class VanillaEncryptionConfiguration { \r\n``` \r\n\r\nBut the enclosing configuration class EncryptionBootstrapConfiguration  has a condition based on the availability of the RsaSecretEncryptor:\r\n\r\n```java\r\n@Configuration \r\n@ConditionalOnClass({ TextEncryptor.class, RsaSecretEncryptor.class }) \r\n@EnableConfigurationProperties(KeyProperties.class) \r\npublic class EncryptionBootstrapConfiguration { \r\n``` \r\nSo the `VanillaEncryptionConfiguration` will only be taken into account, if the `RsaSecretEncryptor` is both available and not available ;-)\r\n"}}