-
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.
updated interaction w/ ID&P for SLA DID retrieving #2
- Loading branch information
Showing
3 changed files
with
58 additions
and
4 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
50 changes: 50 additions & 0 deletions
50
app/src/main/java/eu/_5gzorro/manager/api/dto/identityPermisssions/DIDStateCSDto.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,50 @@ | ||
package eu._5gzorro.manager.api.dto.identityPermisssions; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.Objects; | ||
|
||
public class DIDStateCSDto { | ||
|
||
@JsonProperty("credentialSubject") | ||
private CredentialSubjectDto credentialSubjectDto; | ||
|
||
public DIDStateCSDto() {} | ||
|
||
public CredentialSubjectDto getCredentialSubjectDto() { return credentialSubjectDto; } | ||
|
||
public void setCredentialSubjectDto(CredentialSubjectDto credentialSubjectDto) { this.credentialSubjectDto = credentialSubjectDto; } | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if(this == o) | ||
return true; | ||
|
||
if(o == null || getClass() != o.getClass()) | ||
return false; | ||
|
||
DIDStateCSDto didStateCSDto = (DIDStateCSDto) o; | ||
|
||
return Objects.equals(this.credentialSubjectDto, didStateCSDto.credentialSubjectDto); | ||
} | ||
|
||
@Override | ||
public int hashCode() { return Objects.hash(credentialSubjectDto); } | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class DIDStateCSDto {\n"); | ||
sb.append(" credentialSubjectDto: ").append(toIndentedString(credentialSubjectDto)).append("\n"); | ||
sb.append("}"); | ||
|
||
return sb.toString(); | ||
} | ||
|
||
private String toIndentedString(java.lang.Object o) { | ||
if(o == null) | ||
return "null"; | ||
|
||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |