com.yubico.fido.metadata.Version Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webauthn-server-attestation Show documentation
Show all versions of webauthn-server-attestation Show documentation
Yubico WebAuthn attestation subsystem
The newest version!
package com.yubico.fido.metadata;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Value;
/**
* Represents a generic version with major and minor fields.
*
* @see FIDO
* UAF Protocol Specification §3.1.1 Version Interface
*/
@Value
public class Version {
/**
* @see FIDO
* UAF Protocol Specification §3.1.1 Version Interface
*/
int major;
/**
* @see FIDO
* UAF Protocol Specification §3.1.1 Version Interface
*/
int minor;
/**
* @see FIDO
* UAF Protocol Specification §3.1.1 Version Interface
*/
@JsonCreator
public Version(@JsonProperty("major") int major, @JsonProperty("minor") int minor) {
this.major = major;
this.minor = minor;
}
}