-
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.
intermediate update (non-passing tests / working code)
- Loading branch information
Showing
21 changed files
with
407 additions
and
29 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
29 changes: 29 additions & 0 deletions
29
...nd/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/AlgorithmDigestMethod.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,29 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain; | ||
|
|
||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| import javax.annotation.Nullable; | ||
| import javax.persistence.Entity; | ||
|
|
||
| @Entity(name = "DigestMethod") // for backwards compatibility instead of dealing with renaming the table | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class AlgorithmDigestMethod extends AbstractElementExtensibleXMLObject implements org.opensaml.saml.ext.saml2alg.DigestMethod { | ||
| private String algorithm; | ||
|
|
||
| public AlgorithmDigestMethod() {} | ||
|
|
||
| public AlgorithmDigestMethod(String algorithm) { | ||
| this.algorithm = algorithm; | ||
| } | ||
|
|
||
| @Nullable | ||
| @Override | ||
| public String getAlgorithm() { | ||
| return this.algorithm; | ||
| } | ||
|
|
||
| @Override | ||
| public void setAlgorithm(@Nullable String value) { | ||
| this.algorithm = value; | ||
| } | ||
| } |
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
20 changes: 20 additions & 0 deletions
20
...t2/tier/shibboleth/admin/ui/domain/filters/algorithm/AbstractAlgorithmIdentifierType.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,20 @@ | ||
| 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.persistence.Entity; | ||
|
|
||
| @Entity | ||
| @Audited | ||
| @Getter | ||
| @Setter | ||
| @ToString | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public abstract class AbstractAlgorithmIdentifierType extends AbstractXMLObject { | ||
| private String algorithm; | ||
| } |
13 changes: 12 additions & 1 deletion
13
...src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/filters/algorithm/Entity.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
24 changes: 24 additions & 0 deletions
24
...nd/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/filters/algorithm/MGF.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,24 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.filters.algorithm; | ||
|
|
||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import lombok.ToString; | ||
| import org.hibernate.envers.Audited; | ||
| import org.opensaml.xmlsec.encryption.support.EncryptionConstants; | ||
|
|
||
| import javax.persistence.Entity; | ||
|
|
||
| @Entity | ||
| @Audited | ||
| @Getter | ||
| @Setter | ||
| @ToString | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class MGF extends AbstractAlgorithmIdentifierType { | ||
| public MGF() { | ||
| setElementLocalName("MGF"); | ||
| setNamespaceURI(EncryptionConstants.XMLENC11_NS); | ||
| setNamespacePrefix(EncryptionConstants.XMLENC11_PREFIX); | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
...ain/java/edu/internet2/tier/shibboleth/admin/ui/domain/filters/algorithm/OtherSource.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,26 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.filters.algorithm; | ||
|
|
||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import lombok.ToString; | ||
| import org.hibernate.envers.Audited; | ||
| import org.opensaml.xmlsec.encryption.support.EncryptionConstants; | ||
|
|
||
| import javax.persistence.Entity; | ||
|
|
||
| @Entity | ||
| @Audited | ||
| @Getter | ||
| @Setter | ||
| @ToString | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class OtherSource extends AbstractAlgorithmIdentifierType { | ||
| public OtherSource() { | ||
| { | ||
| setElementLocalName("OtherSource"); | ||
| setNamespaceURI(EncryptionConstants.XMLENC11_NS); | ||
| setNamespacePrefix(EncryptionConstants.XMLENC11_PREFIX); | ||
| } | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
...nd/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/filters/algorithm/PRF.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,24 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.filters.algorithm; | ||
|
|
||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import lombok.ToString; | ||
| import org.hibernate.envers.Audited; | ||
| import org.opensaml.xmlsec.encryption.support.EncryptionConstants; | ||
|
|
||
| import javax.persistence.Entity; | ||
|
|
||
| @Entity | ||
| @Audited | ||
| @Getter | ||
| @Setter | ||
| @ToString | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class PRF extends AbstractAlgorithmIdentifierType { | ||
| public PRF() { | ||
| setElementLocalName("PRF"); | ||
| setNamespaceURI(EncryptionConstants.XMLENC11_NS); | ||
| setNamespacePrefix(EncryptionConstants.XMLENC11_PREFIX); | ||
| } | ||
| } |
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
23 changes: 23 additions & 0 deletions
23
backend/src/main/resources/jpa-saml2-metadata-ds-config.xml
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,23 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <XMLTooling xmlns="http://www.opensaml.org/xmltooling-config" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xmlns:ds="http://www.w3.org/2000/09/xmldsig" | ||
| xsi:schemaLocation="http://www.opensaml.org/xmltooling-config ../../src/schema/xmltooling-config.xsd | ||
| http://www.w3.org/2000/09/xmldsig https://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"> | ||
|
|
||
| <ObjectProviders> | ||
| <!-- AlgorithmDigestMethod provider --> | ||
| <ObjectProvider qualifiedName="ds:DigestMethod"> | ||
| <BuilderClass className="edu.internet2.tier.shibboleth.admin.ui.domain.SignatureDigestMethodBuilder"/> | ||
| <MarshallingClass className="org.opensaml.xmlsec.signature.impl.DigestMethodMarshaller"/> | ||
| <UnmarshallingClass className="org.opensaml.xmlsec.signature.impl.DigestMethodUnmarshaller"/> | ||
| </ObjectProvider> | ||
|
|
||
| <ObjectProvider qualifiedName="ds:DigestMethodType"> | ||
| <BuilderClass className="edu.internet2.tier.shibboleth.admin.ui.domain.SignatureDigestMethodBuilder"/> | ||
| <MarshallingClass className="org.opensaml.xmlsec.signature.impl.DigestMethodMarshaller"/> | ||
| <UnmarshallingClass className="org.opensaml.xmlsec.signature.impl.DigestMethodUnmarshaller"/> | ||
| </ObjectProvider> | ||
|
|
||
| </ObjectProviders> | ||
| </XMLTooling> |
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,22 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain; | ||
|
|
||
| import edu.internet2.tier.shibboleth.admin.ui.opensaml.xml.AbstractXMLObjectBuilder; | ||
| import org.opensaml.xmlsec.signature.support.SignatureConstants; | ||
|
|
||
| public class {{TOKEN}}Builder extends AbstractXMLObjectBuilder<{{TOKEN}}> { | ||
| public {{TOKEN}}Builder() { | ||
| } | ||
|
|
||
| public {{TOKEN}} buildObject() { | ||
| return buildObject(SignatureConstants.XMLSIG_NS, {{TOKEN}}.DEFAULT_ELEMENT_LOCAL_NAME, | ||
| SignatureConstants.XMLSIG_PREFIX); | ||
| } | ||
|
|
||
| public {{TOKEN}} buildObject(final String namespaceURI, final String localName, final String namespacePrefix) { | ||
| {{TOKEN}} o = new {{TOKEN}}(); | ||
| o.setNamespaceURI(namespaceURI); | ||
| o.setElementLocalName(localName); | ||
| o.setNamespacePrefix(namespacePrefix); | ||
| return o; | ||
| } | ||
| } |
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
Oops, something went wrong.