Class BasicJWKCredential
java.lang.Object
org.opensaml.security.credential.AbstractCredential
org.opensaml.security.credential.BasicCredential
net.shibboleth.oidc.security.credential.BasicJWKCredential
- All Implemented Interfaces:
JWKCredential,Credential,MutableCredential
- Direct Known Subclasses:
BasicExpiringJWKCredential
A basic implementation of
JWKCredential.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.nimbusds.jose.Algorithmjwk algorithm.private Stringjwk kid. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jose.AlgorithmGet algorithm of JWK.getKid()Get kid of JWK.voidsetAlgorithm(com.nimbusds.jose.Algorithm algorithm) Set the algorithm of jwk.voidSet the kid of jwk.Methods inherited from class org.opensaml.security.credential.BasicCredential
getCredentialType, setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageTypeMethods inherited from class org.opensaml.security.credential.AbstractCredential
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.security.credential.Credential
getCredentialContextSet, getCredentialType, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageType
-
Field Details
-
jwkAlgorithm
@Nullable private com.nimbusds.jose.Algorithm jwkAlgorithmjwk algorithm. -
jwkKid
jwk kid.
-
-
Constructor Details
-
BasicJWKCredential
public BasicJWKCredential()
-
-
Method Details
-
setKid
Set the kid of jwk.- Parameters:
kid- kid of jwk
-
getKid
Get kid of JWK.- Specified by:
getKidin interfaceJWKCredential- Returns:
- kid parameter.
-
setAlgorithm
public void setAlgorithm(@Nullable com.nimbusds.jose.Algorithm algorithm) Set the algorithm of jwk.- Parameters:
algorithm- algorithm of jwk.
-
getAlgorithm
@Nullable public com.nimbusds.jose.Algorithm getAlgorithm()Get algorithm of JWK.- Specified by:
getAlgorithmin interfaceJWKCredential- Returns:
- algorithm of JWK.
-