-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PB-1004. Support for signer verification.
- Loading branch information
john
committed
May 8, 2017
1 parent
5114861
commit 75bb681
Showing
15 changed files
with
237 additions
and
199 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
67 changes: 67 additions & 0 deletions
67
sdk/src/main/java/com/silanis/esl/api/model/Verification.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,67 @@ | ||
package com.silanis.esl.api.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import static com.silanis.esl.api.util.SchemaSanitizer.throwOnNull; | ||
import static com.silanis.esl.api.util.SchemaSanitizer.trim; | ||
|
||
public class Verification extends Entity | ||
implements java.io.Serializable { | ||
|
||
@JsonIgnore | ||
public static final String FIELD_TYPE_KEY = "typeKey"; | ||
@JsonIgnore | ||
public static final String FIELD_PAYLOAD = "payload"; | ||
|
||
// Empty Constructor | ||
public Verification() { | ||
} | ||
|
||
protected String _typeKey = ""; | ||
protected String _payload = ""; | ||
|
||
public Verification setTypeKey(String value) { | ||
throwOnNull(FIELD_TYPE_KEY, value); | ||
value = trim(value); | ||
|
||
if (StringUtils.equals(this._typeKey, value)) return this; | ||
|
||
this._typeKey = value; | ||
setDirty(FIELD_TYPE_KEY); | ||
return this; | ||
} | ||
|
||
@JsonIgnore | ||
public Verification safeSetTypeKey(String value) { | ||
if (value != null) { | ||
this.setTypeKey(value); | ||
} | ||
return this; | ||
} | ||
|
||
public String getTypeKey() { | ||
return _typeKey; | ||
} | ||
|
||
|
||
public Verification setPayload(String value) { | ||
if (StringUtils.equals(this._payload, value)) return this; | ||
|
||
this._payload = value; | ||
setDirty(FIELD_PAYLOAD); | ||
return this; | ||
} | ||
|
||
@JsonIgnore | ||
public Verification safeSetPayload(String value) { | ||
if (value != null) { | ||
this.setPayload(value); | ||
} | ||
return this; | ||
} | ||
|
||
public String getPayload() { | ||
return _payload; | ||
} | ||
} |
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
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
Oops, something went wrong.