diff --git a/src/main/java/org/codehaus/plexus/components/secdispatcher/SecDispatcher.java b/src/main/java/org/codehaus/plexus/components/secdispatcher/SecDispatcher.java index 4e88a46..53c64a8 100644 --- a/src/main/java/org/codehaus/plexus/components/secdispatcher/SecDispatcher.java +++ b/src/main/java/org/codehaus/plexus/components/secdispatcher/SecDispatcher.java @@ -47,6 +47,11 @@ public interface SecDispatcher { */ Set availableDispatchers(); + /** + * Returns the set of available ciphers, never {@code null}. + */ + Set availableCiphers(); + /** * encrypt given plaintext string * diff --git a/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/DefaultSecDispatcher.java b/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/DefaultSecDispatcher.java index 25dd6fc..38da707 100644 --- a/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/DefaultSecDispatcher.java +++ b/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/DefaultSecDispatcher.java @@ -62,6 +62,11 @@ public Set availableDispatchers() { return Set.copyOf(dispatchers.keySet()); } + @Override + public Set availableCiphers() { + return cipher.availableCiphers(); + } + @Override public String encrypt(String str, Map attr) throws SecDispatcherException { if (isEncryptedString(str)) return str; diff --git a/src/main/mdo/settings-security.mdo b/src/main/mdo/settings-security.mdo index 3702210..d671f57 100644 --- a/src/main/mdo/settings-security.mdo +++ b/src/main/mdo/settings-security.mdo @@ -1,3 +1,4 @@ + + - settings-security SecurityConfiguration @@ -45,6 +48,7 @@ modelVersion 3.0.0+ String + true The version of the model @@ -52,6 +56,7 @@ masterSource 3.0.0+ String + true The URI describing the source of the master password @@ -59,6 +64,7 @@ masterCipher 3.0.0+ String + true The Cipher to be used @@ -66,6 +72,7 @@ relocation 1.0.0+ String + false reference to the location of the security file @@ -73,6 +80,7 @@ configurations 1.0.0+ named configurations + false Config *