Package sh.ory.hydra.model
Class JSONWebKey
- java.lang.Object
-
- sh.ory.hydra.model.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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ALGstatic StringSERIALIZED_NAME_CRVstatic StringSERIALIZED_NAME_Dstatic StringSERIALIZED_NAME_DPstatic StringSERIALIZED_NAME_DQstatic StringSERIALIZED_NAME_Estatic StringSERIALIZED_NAME_Kstatic StringSERIALIZED_NAME_KIDstatic StringSERIALIZED_NAME_KTYstatic StringSERIALIZED_NAME_Nstatic StringSERIALIZED_NAME_Pstatic StringSERIALIZED_NAME_Qstatic StringSERIALIZED_NAME_QIstatic StringSERIALIZED_NAME_USEstatic StringSERIALIZED_NAME_Xstatic StringSERIALIZED_NAME_X5Cstatic StringSERIALIZED_NAME_Y
-
Constructor Summary
Constructors Constructor Description JSONWebKey()
-
Method Summary
Modifier and Type Method Description JSONWebKeyaddX5cItem(String x5cItem)JSONWebKeyalg(String alg)JSONWebKeycrv(String crv)JSONWebKeyd(String d)JSONWebKeydp(String dp)JSONWebKeydq(String dq)JSONWebKeye(String e)booleanequals(Object o)StringgetAlg()The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key.StringgetCrv()Get crvStringgetD()Get dStringgetDp()Get dpStringgetDq()Get dqStringgetE()Get eStringgetK()Get kStringgetKid()The \"kid\" (key ID) parameter is used to match a specific key.StringgetKty()The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\".StringgetN()Get nStringgetP()Get pStringgetQ()Get qStringgetQi()Get qiStringgetUse()Use (\"public key use\") identifies the intended use of the public key.StringgetX()Get xList<String>getX5c()The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280].StringgetY()Get yinthashCode()JSONWebKeyk(String k)JSONWebKeykid(String kid)JSONWebKeykty(String kty)JSONWebKeyn(String n)JSONWebKeyp(String p)JSONWebKeyq(String q)JSONWebKeyqi(String qi)voidsetAlg(String alg)voidsetCrv(String crv)voidsetD(String d)voidsetDp(String dp)voidsetDq(String dq)voidsetE(String e)voidsetK(String k)voidsetKid(String kid)voidsetKty(String kty)voidsetN(String n)voidsetP(String p)voidsetQ(String q)voidsetQi(String qi)voidsetUse(String use)voidsetX(String x)voidsetX5c(List<String> x5c)voidsetY(String y)StringtoString()JSONWebKeyuse(String use)JSONWebKeyx(String x)JSONWebKeyx5c(List<String> x5c)JSONWebKeyy(String y)
-
-
-
Field Detail
-
SERIALIZED_NAME_ALG
public static final String SERIALIZED_NAME_ALG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CRV
public static final String SERIALIZED_NAME_CRV
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_D
public static final String SERIALIZED_NAME_D
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DP
public static final String SERIALIZED_NAME_DP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DQ
public static final String SERIALIZED_NAME_DQ
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_E
public static final String SERIALIZED_NAME_E
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_K
public static final String SERIALIZED_NAME_K
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KID
public static final String SERIALIZED_NAME_KID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KTY
public static final String SERIALIZED_NAME_KTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_N
public static final String SERIALIZED_NAME_N
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_P
public static final String SERIALIZED_NAME_P
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_Q
public static final String SERIALIZED_NAME_Q
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_QI
public static final String SERIALIZED_NAME_QI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USE
public static final String SERIALIZED_NAME_USE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_X
public static final String SERIALIZED_NAME_X
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_X5C
public static final String SERIALIZED_NAME_X5C
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_Y
public static final String SERIALIZED_NAME_Y
- See Also:
- Constant Field Values
-
-
Method Detail
-
alg
public JSONWebKey alg(String alg)
-
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)
-
crv
public JSONWebKey crv(String crv)
-
setCrv
public void setCrv(String crv)
-
d
public JSONWebKey d(String d)
-
setD
public void setD(String d)
-
dp
public JSONWebKey dp(String dp)
-
setDp
public void setDp(String dp)
-
dq
public JSONWebKey dq(String dq)
-
setDq
public void setDq(String dq)
-
e
public JSONWebKey e(String e)
-
setE
public void setE(String e)
-
k
public JSONWebKey k(String k)
-
setK
public void setK(String k)
-
kid
public JSONWebKey kid(String kid)
-
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)
-
kty
public JSONWebKey kty(String kty)
-
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)
-
n
public JSONWebKey n(String n)
-
setN
public void setN(String n)
-
p
public JSONWebKey p(String p)
-
setP
public void setP(String p)
-
q
public JSONWebKey q(String q)
-
setQ
public void setQ(String q)
-
qi
public JSONWebKey qi(String qi)
-
setQi
public void setQi(String qi)
-
use
public JSONWebKey use(String use)
-
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)
-
x
public JSONWebKey x(String x)
-
setX
public void setX(String x)
-
x5c
public JSONWebKey x5c(List<String> x5c)
-
addX5cItem
public JSONWebKey addX5cItem(String x5cItem)
-
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
-
y
public JSONWebKey y(String y)
-
setY
public void setY(String y)
-
-