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

de.cidaas.jwt.impl.NullClaim Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package de.cidaas.jwt.impl;

import de.cidaas.jwt.exceptions.JWTDecodeException;
import de.cidaas.jwt.interfaces.Claim;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * The {@link NullClaim} class is a Claim implementation that returns null when any of it's methods it's called.
 */
public class NullClaim implements Claim {
    @Override
    public boolean isNull() {
        return true;
    }

    @Override
    public Boolean asBoolean() {
        return null;
    }

    @Override
    public Integer asInt() {
        return null;
    }

    @Override
    public Long asLong() {
        return null;
    }

    @Override
    public Double asDouble() {
        return null;
    }

    @Override
    public String asString() {
        return null;
    }

    @Override
    public Date asDate() {
        return null;
    }

    @Override
    public  T[] asArray(Class tClazz) throws JWTDecodeException {
        return null;
    }

    @Override
    public  List asList(Class tClazz) throws JWTDecodeException {
        return null;
    }

    @Override
    public Map asMap() throws JWTDecodeException {
        return null;
    }

    @Override
    public  T as(Class tClazz) throws JWTDecodeException {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy