lib/msidp/certificate_credential.rb
# JOSE header of the JWT.
#
# @return [String] JSON string of the JOSE header.
JOSE header of the JWT.
JOSE header of the JWT .
def header
      digest = OpenSSL::Digest::SHA1.digest(@cert.to_der)
      x5t = Base64.urlsafe_encode64(digest)
      header = { alg: 'RS256', typ: 'JWT', x5t: x5t.to_s }
      JSON.dump(header)
    end
def header digest = OpenSSL :: Digest :: SHA1 . digest ( @cert . to_der ) x5t = Base64 . urlsafe_encode64 ( digest ) header = { alg : 'RS256' , typ : 'JWT' , x5t : x5t . to_s } JSON . dump ( header ) end
JOSE header of the JWT.
JOSE header of the JWT .
JSON string of the JOSE header.
JSON string of the JOSE header .
String