Class 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 of JWKCredential.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.nimbusds.jose.Algorithm jwkAlgorithm
      jwk algorithm.
      private String jwkKid
      jwk kid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.nimbusds.jose.Algorithm getAlgorithm()
      Get algorithm of JWK.
      String getKid()
      Get kid of JWK.
      void setAlgorithm​(com.nimbusds.jose.Algorithm algorithm)
      Set the algorithm of jwk.
      void setKid​(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
      • Methods inherited from interface org.opensaml.security.credential.Credential

        getCredentialContextSet, getCredentialType, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageType
    • Field Detail

      • jwkAlgorithm

        private com.nimbusds.jose.Algorithm jwkAlgorithm
        jwk algorithm.
      • jwkKid

        private String jwkKid
        jwk kid.
    • Constructor Detail

      • BasicJWKCredential

        public BasicJWKCredential()
    • Method Detail

      • setKid

        public void setKid​(String kid)
        Set the kid of jwk.
        Parameters:
        kid - kid of jwk
      • 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:
        getAlgorithm in interface JWKCredential
        Returns:
        algorithm of JWK.