Package com.yubico.fido.metadata
Class MetadataBLOBPayload.MetadataBLOBPayloadBuilder
- java.lang.Object
-
- com.yubico.fido.metadata.MetadataBLOBPayload.MetadataBLOBPayloadBuilder
-
- Enclosing class:
- MetadataBLOBPayload
public static class MetadataBLOBPayload.MetadataBLOBPayloadBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataBLOBPayload
build()
MetadataBLOBPayload.MetadataBLOBPayloadBuilder
entries(@NonNull java.util.Set<MetadataBLOBPayloadEntry> entries)
Zero or moreMetadataBLOBPayloadEntry
objects.MetadataBLOBPayload.MetadataBLOBPayloadBuilder
legalHeader(java.lang.String legalHeader)
The legalHeader, which MUST be in each BLOB, is an indication of the acceptance of the relevant legal agreement for using the MDS.MetadataBLOBPayload.MetadataBLOBPayloadBuilder
nextUpdate(@NonNull java.time.LocalDate nextUpdate)
ISO-8601 formatted date when the next update will be provided at latest.MetadataBLOBPayload.MetadataBLOBPayloadBuilder
no(int no)
The serial number of this Metadata BLOB Payload.java.lang.String
toString()
-
-
-
Method Detail
-
legalHeader
public MetadataBLOBPayload.MetadataBLOBPayloadBuilder legalHeader(java.lang.String legalHeader)
The legalHeader, which MUST be in each BLOB, is an indication of the acceptance of the relevant legal agreement for using the MDS.- Returns:
this
.- See Also:
- FIDO Metadata Service §3.1.6. Metadata BLOB Payload dictionary
-
no
public MetadataBLOBPayload.MetadataBLOBPayloadBuilder no(int no)
The serial number of this Metadata BLOB Payload. Serial numbers MUST be consecutive and strictly monotonic, i.e. the successor BLOB will have ano
value exactly incremented by one.- Returns:
this
.- See Also:
- FIDO Metadata Service §3.1.6. Metadata BLOB Payload dictionary
-
nextUpdate
public MetadataBLOBPayload.MetadataBLOBPayloadBuilder nextUpdate(@NonNull @NonNull java.time.LocalDate nextUpdate)
ISO-8601 formatted date when the next update will be provided at latest.- Returns:
this
.- See Also:
- FIDO Metadata Service §3.1.6. Metadata BLOB Payload dictionary
-
entries
public MetadataBLOBPayload.MetadataBLOBPayloadBuilder entries(@NonNull @NonNull java.util.Set<MetadataBLOBPayloadEntry> entries)
Zero or moreMetadataBLOBPayloadEntry
objects.- Returns:
this
.- See Also:
- FIDO Metadata Service §3.1.6. Metadata BLOB Payload dictionary
-
build
public MetadataBLOBPayload build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-