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

io.gravitee.am.model.jose.JWK Maven / Gradle / Ivy

There is a newer version: 4.6.0-alpha.2
Show newest version
/**
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * 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 io.gravitee.am.model.jose;

import java.util.Set;

/**
 * See JSON Web Key (JWK)
 *
 * @author Titouan COMPIEGNE ([email protected])
 * @author GraviteeSource Team
 */
public abstract class JWK {

    /**
     * "kty" (Key Type) Parameter
     */
    private String kty;

    /**
     * "use" (Public Key Use) Parameter
     */
    private String use;

    /**
     * "key_ops" (Key Operations) Parameter
     */
    private Set keyOps;

    /**
     * "alg" (Algorithm) Parameter
     */
    private String alg;

    /**
     * "kid" (Key ID) Parameter
     */
    private String kid;

    /**
     * "x5u" (X.509 URL) Parameter
     */
    private String x5u;

    /**
     * "x5c" (X.509 Certificate Chain) Parameter
     */
    private Set x5c;

    /**
     * "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter
     */
    private String x5t;

    /**
     * "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter
     */
    private String x5tS256;

    public String getKty() {
        return kty;
    }

    public void setKty(String kty) {
        this.kty = kty;
    }

    public String getUse() {
        return use;
    }

    public void setUse(String use) {
        this.use = use;
    }

    public Set getKeyOps() {
        return keyOps;
    }

    public void setKeyOps(Set keyOps) {
        this.keyOps = keyOps;
    }

    public String getAlg() {
        return alg;
    }

    public void setAlg(String alg) {
        this.alg = alg;
    }

    public String getKid() {
        return kid;
    }

    public void setKid(String kid) {
        this.kid = kid;
    }

    public String getX5u() {
        return x5u;
    }

    public void setX5u(String x5u) {
        this.x5u = x5u;
    }

    public Set getX5c() {
        return x5c;
    }

    public void setX5c(Set x5c) {
        this.x5c = x5c;
    }

    public String getX5t() {
        return x5t;
    }

    public void setX5t(String x5t) {
        this.x5t = x5t;
    }

    public String getX5tS256() {
        return x5tS256;
    }

    public void setX5tS256(String x5tS256) {
        this.x5tS256 = x5tS256;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy