-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quick installation guide for development
- Loading branch information
jua56487
committed
Oct 23, 2024
1 parent
39358da
commit 83ba523
Showing
26 changed files
with
2,610 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -14,14 +14,31 @@ For more information please visit the website: https://www.hci.iao.fraunhofer.de | |
|
||
## Requirements | ||
|
||
- Java 17 or newer | ||
- Maven ~3.6.0 | ||
- Java 21 or newer | ||
- Maven ~3.9.8 | ||
- Internet access | ||
- TRAIN Trust Infrastructure | ||
- Zone Manager | ||
- Running instance of Zone Manager | ||
|
||
## Documentation | ||
|
||
### Quick deployment guide for development | ||
|
||
To have a development running instance of TFM, follow these steps: | ||
|
||
```bash | ||
git clone [email protected]:undp/Regi-TRUST.git | ||
``` | ||
|
||
Setup variables in [application.yml](./src/main/resources/application.yml). Then install and run. | ||
|
||
```bash | ||
cd Regi-TRUST/Phase2/tfm/ | ||
mvn clean install | ||
mvn spring-boot:run | ||
``` | ||
|
||
## This still needs to be orginized to simplify documentation for Phase 2: | ||
|
||
### [Short Software Description](./README.md#description) | ||
|
||
### [Usage Guide](./doc/README.md) | ||
|
36 changes: 36 additions & 0 deletions
36
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/Address.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,36 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "Address",propOrder = { | ||
"street", | ||
"local", | ||
"postalCode", | ||
"country" | ||
}) | ||
public class Address implements Serializable{ | ||
|
||
@XmlElement(name = "StreetAddress") | ||
private String street; | ||
|
||
@XmlElement(name = "Locality") | ||
private String local; | ||
|
||
@XmlElement(name = "PostalCode") | ||
private String postalCode; | ||
|
||
@XmlElement(name = "CountryName") | ||
private String country; | ||
|
||
|
||
} |
68 changes: 68 additions & 0 deletions
68
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/FrameworkInformationType.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,68 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "FrameworkInformationType",propOrder = { | ||
"tSLVersionIdentifier", | ||
"tSLSequenceNumber", | ||
"tSLType", | ||
"frameworkOperatorName", | ||
"frameworkOperatorAddress", | ||
"frameworkName", | ||
"frameworkInformationURI", | ||
"frameworkAuditURI", | ||
"frameworkTypeCommunityRules", | ||
"frameworkScope", | ||
"policyOrLegalNotice", | ||
"listIssueDateTime" | ||
}) | ||
public class FrameworkInformationType{ | ||
|
||
@XmlElement(name = "TSLVersionIdentifier") | ||
private int tSLVersionIdentifier; | ||
|
||
@XmlElement(name = "TSLSequenceNumber") | ||
private int tSLSequenceNumber; | ||
|
||
@XmlElement(name = "TSLType") | ||
private String tSLType; | ||
|
||
@XmlElement(name = "FrameworkOperatorName") | ||
private NameType frameworkOperatorName; | ||
|
||
@XmlElement(name = "FrameworkOperatorAddress") | ||
private FrameworkOperatorAddressType frameworkOperatorAddress; | ||
|
||
@XmlElement(name = "FrameworkName") | ||
private NameType frameworkName; | ||
|
||
@XmlElement(name = "FrameworkInformationURI") | ||
private URIType frameworkInformationURI; | ||
|
||
@XmlElement(name = "FrameworkAuditURI") | ||
private URIType frameworkAuditURI; | ||
|
||
@XmlElement(name = "FrameworkTypeCommunityRules") | ||
private URIType frameworkTypeCommunityRules; | ||
|
||
@XmlElement(name = "FrameworkScope") | ||
private String frameworkScope; | ||
|
||
@XmlElement(name = "PolicyOrLegalNotice") | ||
private PolicyOrLegalNoticeType policyOrLegalNotice; | ||
|
||
@XmlElement(name = "ListIssueDateTime") | ||
private String listIssueDateTime; | ||
|
||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...e2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/FrameworkOperatorAddressType.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,28 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "FrameworkOperatorAddressType",propOrder = {"postalAddresses","electronicAddress"}) | ||
public class FrameworkOperatorAddressType implements Serializable{ | ||
|
||
@XmlElement(name = "PostalAddresses") | ||
private PostalAddressesType postalAddresses; | ||
|
||
@XmlElement(name = "ElectronicAddress") | ||
private URIType electronicAddress; | ||
|
||
|
||
|
||
} |
25 changes: 25 additions & 0 deletions
25
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/NameType.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,25 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "NameType",propOrder = {"name"}) | ||
public class NameType implements Serializable { | ||
|
||
@XmlElement(name = "Name") | ||
private String name; | ||
|
||
|
||
|
||
} |
23 changes: 23 additions & 0 deletions
23
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/PolicyOrLegalNoticeType.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,23 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "PolicyOrLegalNoticeType",propOrder = {"tSLLegalNotice"}) | ||
public class PolicyOrLegalNoticeType implements Serializable{ | ||
|
||
@XmlElement(name="TSLLegalNotice") | ||
private String tSLLegalNotice; | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/PostalAddressesType.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,23 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "PostalAddressesType",propOrder = {"postalAddress"}) | ||
public class PostalAddressesType implements Serializable{ | ||
@XmlElement(name = "PostalAddress") | ||
private List<Address> postalAddress; | ||
|
||
|
||
|
||
} |
25 changes: 25 additions & 0 deletions
25
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/TrustServiceStatusList.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,25 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import eu.xfsc.train.tspa.model.trustlist.tsp.TrustServiceProviderListCustomType; | ||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlRootElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlRootElement(name = "TrustServiceStatusList") | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "TrustServiceStatusList",propOrder = {"frameworkInformation","trustServiceProviderList"}) | ||
public class TrustServiceStatusList { | ||
|
||
@XmlElement(name = "FrameworkInformation") | ||
private FrameworkInformationType frameworkInformation; | ||
|
||
@XmlElement(name = "TrustServiceProviderList") | ||
private TrustServiceProviderListCustomType trustServiceProviderList; | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/URIType.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,23 @@ | ||
package eu.xfsc.train.tspa.model.trustlist; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "URIType",propOrder = {"uri"}) | ||
public class URIType implements Serializable{ | ||
|
||
@XmlElement(name = "URI") | ||
private String uri; | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
...rc/main/java/eu/xfsc/train/tspa/model/trustlist/tsp/AdditionalServiceInformationType.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,45 @@ | ||
package eu.xfsc.train.tspa.model.trustlist.tsp; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "AdditionalServiceInformationType",propOrder = { | ||
"serviceBusinessRulesURI", | ||
"serviceGovernanceURI", | ||
"serviceIssuedCredentialTypes", | ||
"serviceContractType", | ||
"servicePolicySet", | ||
"serviceSchemaURI", | ||
"serviceSupplyPoint" | ||
}) | ||
public class AdditionalServiceInformationType { | ||
|
||
@XmlElement(name = "ServiceBusinessRulesURI") | ||
private String serviceBusinessRulesURI; | ||
|
||
@XmlElement(name = "ServiceGovernanceURI") | ||
private String serviceGovernanceURI; | ||
|
||
@XmlElement(name = "ServiceIssuedCredentialTypes") | ||
private ServiceIssuedCredentialType serviceIssuedCredentialTypes; | ||
|
||
@XmlElement(name = "ServiceContractType") | ||
private String serviceContractType; | ||
|
||
@XmlElement(name = "ServicePolicySet") | ||
private String servicePolicySet; | ||
|
||
@XmlElement(name = "ServiceSchemaURI") | ||
private String serviceSchemaURI; | ||
|
||
@XmlElement(name = "ServiceSupplyPoint") | ||
private String serviceSupplyPoint; | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/tsp/CredentialCustomType.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,19 @@ | ||
package eu.xfsc.train.tspa.model.trustlist.tsp; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "CredentialCustomType",propOrder = {"type"}) | ||
public class CredentialCustomType { | ||
|
||
@XmlElement(name = "Type") | ||
private String type; | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
Phase2/tfm/src/main/java/eu/xfsc/train/tspa/model/trustlist/tsp/DigitalIdType.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,22 @@ | ||
package eu.xfsc.train.tspa.model.trustlist.tsp; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "DigitalIdType",propOrder = {"x509Certificate","did"}) | ||
public class DigitalIdType { | ||
|
||
@XmlElement(name = "X509Certificate") | ||
private String x509Certificate; | ||
|
||
@XmlElement(name = "DID") | ||
private String did; | ||
|
||
} |
Oops, something went wrong.