[java-shib-profile] branch main updated: Expose an interface for attribute/assertion encryption.
Scott Cantor
cantor.2 at osu.edu
Thu Feb 16 19:35:22 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-profile.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-profile.git;a=commit;h=4af928c46b30396d17be3b3dceb25551caa4f088
The following commit(s) were added to refs/heads/main by this push:
new 4af928c Expose an interface for attribute/assertion encryption.
4af928c is described below
commit 4af928c46b30396d17be3b3dceb25551caa4f088
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Feb 16 14:35:20 2023 -0500
Expose an interface for attribute/assertion encryption.
---
...AML2AssertionProducingProfileConfiguration.java | 47 ++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/SAML2AssertionProducingProfileConfiguration.java b/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/SAML2AssertionProducingProfileConfiguration.java
new file mode 100644
index 0000000..8cb0297
--- /dev/null
+++ b/shib-saml-profile-api/src/main/java/net/shibboleth/saml/saml2/profile/config/SAML2AssertionProducingProfileConfiguration.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.saml.saml2.profile.config;
+
+import javax.annotation.Nullable;
+
+import org.opensaml.profile.context.ProfileRequestContext;
+
+/**
+ * Interface for SAML 2.0 profiles that produce assertions.
+ */
+public interface SAML2AssertionProducingProfileConfiguration {
+
+ /**
+ * Gets the predicate used to determine if assertions should be encrypted.
+ *
+ * @param profileRequestContext current profile request context
+ *
+ * @return predicate used to determine if assertions should be encrypted
+ */
+ boolean isEncryptAssertions(@Nullable final ProfileRequestContext profileRequestContext);
+
+ /**
+ * Gets the predicate used to determine if attributes should be encrypted.
+ *
+ * @param profileRequestContext current profile request context
+ *
+ * @return predicate used to determine if attributes should be encrypted
+ */
+ boolean isEncryptAttributes(@Nullable final ProfileRequestContext profileRequestContext);
+
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list