Class JSONWebKey


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2021-01-12T16:13:57.119092Z[GMT]")
    public class JSONWebKey
    extends Object
    It is important that this model object is named JSONWebKey for \"swagger generate spec\" to generate only on definition of a JSONWebKey.
    • Constructor Detail

      • JSONWebKey

        public JSONWebKey()
    • Method Detail

      • getAlg

        public String getAlg()
        The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name.
        Returns:
        alg
      • setAlg

        public void setAlg​(String alg)
      • setCrv

        public void setCrv​(String crv)
      • setD

        public void setD​(String d)
      • setDp

        public void setDp​(String dp)
      • setDq

        public void setDq​(String dq)
      • setE

        public void setE​(String e)
      • setK

        public void setK​(String k)
      • getKid

        public String getKid()
        The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string.
        Returns:
        kid
      • setKid

        public void setKid​(String kid)
      • getKty

        public String getKty()
        The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string.
        Returns:
        kty
      • setKty

        public void setKty​(String kty)
      • setN

        public void setN​(String n)
      • setP

        public void setP​(String p)
      • setQ

        public void setQ​(String q)
      • setQi

        public void setQi​(String qi)
      • getUse

        public String getUse()
        Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).
        Returns:
        use
      • setUse

        public void setUse​(String use)
      • setX

        public void setX​(String x)
      • getX5c

        @Nullable
        public List<String> getX5c()
        The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
        Returns:
        x5c
      • setX5c

        public void setX5c​(List<String> x5c)
      • setY

        public void setY​(String y)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object