public class NoticeRef extends Object implements JsonSerializable
The NoticeRef is part of the signature policy qualifier SpUserNotice. The noticeRef member shall name an organization and shall identify by numbers (noticeNumbers member) a group of textual statements prepared by that organization, so that the application could get the explicit notices from a notices file. The syntax is as follows:
"noticeRef": { "type": "object", "properties": { "organization": {"type": "string"}, "noticeNumbers": {"type": "array", "items": {"type": "integer"}, "minItems": 1} }, "required": [ "organization", "noticeNumbers" ], "additionalProperties": false },Modifier and Type | Field and Description |
---|---|
static String |
KEY
The key of this json object
|
Constructor and Description |
---|
NoticeRef(String organization,
List<Integer> noticeNumbers)
Creates a noticeRef with the provided organization and noticeNumbers.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getNoticeNumbers()
Returns an unmodifiable list containing the noticeNumbers.
|
String |
getOrganization()
Returns the organization string.
|
void |
writeToJson(com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
Writes the Json representation of the noticeRef to the provided JsonGenerator.
|
public static final String KEY
public String getOrganization()
public List<Integer> getNoticeNumbers()
public void writeToJson(com.fasterxml.jackson.core.JsonGenerator jsonGenerator) throws IOException
Writes the Json representation of the noticeRef to the provided JsonGenerator.
writeToJson
in interface JsonSerializable
jsonGenerator
- a JsonGenerator for serializingIOException
- if it is not possible to write to the provided sourceCopyright © 2022 Stiftung SIC. All rights reserved.