use of com.webauthn4j.metadata.data.MetadataBLOBPayload in project webauthn4j by webauthn4j.
the class CachingMetadataBLOBProviderTest method createMetadataBLOB.
private MetadataBLOB createMetadataBLOB(LocalDate nextUpdate) {
JWSFactory factory = new JWSFactory(new ObjectConverter());
JWSHeader header = new JWSHeader(JWAIdentifier.ES256, null);
MetadataBLOBPayload payload = new MetadataBLOBPayload("", 0, nextUpdate, Collections.emptyList());
JWS<MetadataBLOBPayload> jws = factory.create(header, payload, new byte[32]);
return new MetadataBLOB(jws);
}
Aggregations