All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pac4j.oauth.profile.yahoo.YahooDisclosure Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
package org.pac4j.oauth.profile.yahoo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import static org.pac4j.core.util.CommonHelper.newDate;

/**
 * This class represents a Yahoo disclosure.
 *
 * @author Jerome Leleu
 * @since 1.1.0
 */
public final class YahooDisclosure implements Serializable {

    @Serial
    private static final long serialVersionUID = 1592628531426071633L;

    private String acceptance;

    private String name;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd'T'HH:mm:ss'Z'")
    private Date seen;

    private String version;

    /**
     * 

Getter for the field acceptance.

* * @return a {@link String} object */ public String getAcceptance() { return acceptance; } /** *

Setter for the field acceptance.

* * @param acceptance a {@link String} object */ public void setAcceptance(String acceptance) { this.acceptance = acceptance; } /** *

Getter for the field name.

* * @return a {@link String} object */ public String getName() { return name; } /** *

Setter for the field name.

* * @param name a {@link String} object */ public void setName(String name) { this.name = name; } /** *

Getter for the field seen.

* * @return a {@link Date} object */ public Date getSeen() { return newDate(seen); } /** *

Setter for the field seen.

* * @param seen a {@link Date} object */ public void setSeen(Date seen) { this.seen = newDate(seen); } /** *

Getter for the field version.

* * @return a {@link String} object */ public String getVersion() { return version; } /** *

Setter for the field version.

* * @param version a {@link String} object */ public void setVersion(String version) { this.version = version; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy