LdProof.java
/*
* Copyright 2024 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.keycloak.protocol.oid4vc.model.vcdm;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* Pojo to represent a linked-data proof
* {@see https://www.w3.org/TR/vc-data-model}
*
* @author <a href="https://github.com/wistefan">Stefan Wiedemann</a>
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LdProof {
private String type;
private Date created;
private String proofPurpose;
private String verificationMethod;
private String proofValue;
private String jws;
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<>();
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperties(String name, Object property) {
additionalProperties.put(name, property);
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public String getProofPurpose() {
return proofPurpose;
}
public void setProofPurpose(String proofPurpose) {
this.proofPurpose = proofPurpose;
}
public String getVerificationMethod() {
return verificationMethod;
}
public void setVerificationMethod(String verificationMethod) {
this.verificationMethod = verificationMethod;
}
public String getProofValue() {
return proofValue;
}
public void setProofValue(String proofValue) {
this.proofValue = proofValue;
}
public String getJws() {
return jws;
}
public void setJws(String jws) {
this.jws = jws;
}
}