aboutsummaryrefslogtreecommitdiff
path: root/actions/policy.go
diff options
context:
space:
mode:
Diffstat (limited to 'actions/policy.go')
-rw-r--r--actions/policy.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/policy.go b/actions/policy.go
index ef5f0a3..875a01f 100644
--- a/actions/policy.go
+++ b/actions/policy.go
@@ -194,6 +194,11 @@ func (policy *Policy) Description() string {
return policy.Context.getService() + policy.Descriptor()
}
+// Options returns the encryption options of this policy.
+func (policy *Policy) Options() *metadata.EncryptionOptions {
+ return policy.data.Options
+}
+
// Destroy removes a policy from the filesystem. The internal key should still
// be wiped with Lock().
func (policy *Policy) Destroy() error {