Package org.geant.security.jwk
Class BasicJWKCredential
- java.lang.Object
-
- org.opensaml.security.credential.AbstractCredential
-
- org.opensaml.security.credential.BasicCredential
-
- org.geant.security.jwk.BasicJWKCredential
-
- All Implemented Interfaces:
JWKCredential,org.opensaml.security.credential.Credential,org.opensaml.security.credential.MutableCredential
public class BasicJWKCredential extends org.opensaml.security.credential.BasicCredential implements JWKCredential
A basic implementation ofJWKCredential.
-
-
Field Summary
Fields Modifier and Type Field Description private com.nimbusds.jose.AlgorithmjwkAlgorithmjwk algorithm.private StringjwkKidjwk kid.
-
Constructor Summary
Constructors Constructor Description BasicJWKCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jose.AlgorithmgetAlgorithm()Get algorithm of JWK.StringgetKid()Get kid of JWK.voidsetAlgorithm(com.nimbusds.jose.Algorithm algorithm)Set the algorithm of jwk.voidsetKid(String kid)Set the kid of jwk.-
Methods inherited from class org.opensaml.security.credential.BasicCredential
getCredentialType, setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageType
-
Methods inherited from class org.opensaml.security.credential.AbstractCredential
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageType
-
-
-
-
Field Detail
-
jwkAlgorithm
private com.nimbusds.jose.Algorithm jwkAlgorithm
jwk algorithm.
-
jwkKid
private String jwkKid
jwk kid.
-
-
Method Detail
-
setKid
public void setKid(String kid)
Set the kid of jwk.- Parameters:
kid- kid of jwk
-
getKid
public String getKid()
Get kid of JWK.- Specified by:
getKidin interfaceJWKCredential- Returns:
- kid parameter.
-
setAlgorithm
public void setAlgorithm(com.nimbusds.jose.Algorithm algorithm)
Set the algorithm of jwk.- Parameters:
algorithm- algorithm of jwk.
-
getAlgorithm
public com.nimbusds.jose.Algorithm getAlgorithm()
Get algorithm of JWK.- Specified by:
getAlgorithmin interfaceJWKCredential- Returns:
- algorithm of JWK.
-
-