-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding remaining needed pieces for Algorithm filter
- Loading branch information
Showing
8 changed files
with
164 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...in/java/edu/internet2/tier/shibboleth/admin/ui/domain/filters/algorithm/ConditionRef.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.filters.algorithm; | ||
|
|
||
| import edu.internet2.tier.shibboleth.admin.ui.domain.AbstractXMLObject; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import lombok.ToString; | ||
| import org.hibernate.envers.Audited; | ||
|
|
||
| import javax.annotation.Nullable; | ||
|
|
||
| @javax.persistence.Entity | ||
| @Audited | ||
| @Getter | ||
| @Setter | ||
| @ToString | ||
| @EqualsAndHashCode(callSuper = true) | ||
| /** | ||
| * The textual content (the value/uri) is the Bean ID of type Predicate<EntityDescriptor> | ||
| */ | ||
| public class ConditionRef extends AbstractXMLObject implements org.opensaml.core.xml.schema.XSString { | ||
| private String uri; | ||
|
|
||
| public ConditionRef() { | ||
| setElementLocalName("ConditionRef"); | ||
| } | ||
|
|
||
| @Nullable | ||
| @Override | ||
| public String getValue() { | ||
| return this.uri; | ||
| } | ||
|
|
||
| @Override | ||
| public void setValue(@Nullable String newValue) { | ||
| this.uri = newValue; | ||
| } | ||
| } |
38 changes: 38 additions & 0 deletions
38
...java/edu/internet2/tier/shibboleth/admin/ui/domain/filters/algorithm/ConditionScript.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.filters.algorithm; | ||
|
|
||
| import edu.internet2.tier.shibboleth.admin.ui.domain.AbstractXMLObject; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import lombok.ToString; | ||
| import org.hibernate.envers.Audited; | ||
|
|
||
| import javax.annotation.Nullable; | ||
|
|
||
| @javax.persistence.Entity | ||
| @Audited | ||
| @Getter | ||
| @Setter | ||
| @ToString | ||
| @EqualsAndHashCode(callSuper = true) | ||
| /** | ||
| * The textual content is the JS script (the export of the XML will wrap it appropriately) | ||
| */ | ||
| public class ConditionScript extends AbstractXMLObject implements org.opensaml.core.xml.schema.XSString { | ||
| private String uri; | ||
|
|
||
| public ConditionScript() { | ||
| setElementLocalName("ConditionScript"); | ||
| } | ||
|
|
||
| @Nullable | ||
| @Override | ||
| public String getValue() { | ||
| return this.uri; | ||
| } | ||
|
|
||
| @Override | ||
| public void setValue(@Nullable String newValue) { | ||
| this.uri = newValue; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <MetadataProvider id="ShibbolethMetadata" | ||
| xmlns="urn:mace:shibboleth:2.0:metadata" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd urn:mace:shibboleth:2.0:resource http://shibboleth.net/schema/idp/shibboleth-resource.xsd urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd urn:oasis:names:tc:SAML:2.0:assertion http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd" | ||
| xsi:type="ChainingMetadataProvider"> | ||
| <MetadataFilter xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport" | ||
| xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | ||
| xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | ||
| xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" | ||
| xmlns:security="urn:mace:shibboleth:2.0:security" | ||
| xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" | ||
| xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd urn:oasis:names:tc:SAML:2.0:assertion http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd urn:oasis:names:tc:SAML:metadata:algsupport https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-metadata-algsupport-v1.0.xsd http://www.w3.org/2000/09/xmldsig# https://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd http://www.w3.org/2009/xmlenc11# https://www.w3.org/TR/xmlenc-core1/xenc-schema-11.xsd" | ||
| xsi:type="Algorithm"> | ||
|
|
||
| <md:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/> | ||
| <Entity>https://broken.example.org/sp</Entity> | ||
| <ConditionRef>shibboleth.Conditions.TRUE</ConditionRef> | ||
| <ConditionScript> | ||
| <Script> | ||
| <![CDATA[ | ||
| "use strict"; | ||
| false; | ||
| ]]> | ||
| </Script> | ||
| </ConditionScript> | ||
|
|
||
| </MetadataFilter> | ||
| </MetadataProvider> |