Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for keyIDFromPublicKey (0.31 sec)

  1. pkg/serviceaccount/jwt.go

    	}
    
    	return &jwtTokenGenerator{
    		iss:    iss,
    		signer: signer,
    	}, nil
    }
    
    // keyIDFromPublicKey derives a key ID non-reversibly from a public key.
    //
    // The Key ID is field on a given on JWTs and JWKs that help relying parties
    // pick the correct key for verification when the identity party advertises
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. pkg/serviceaccount/openidmetadata.go

    }
    
    func jwkFromPublicKey(publicKey crypto.PublicKey) (*jose.JSONWebKey, error) {
    	alg, err := algorithmFromPublicKey(publicKey)
    	if err != nil {
    		return nil, err
    	}
    
    	keyID, err := keyIDFromPublicKey(publicKey)
    	if err != nil {
    		return nil, err
    	}
    
    	jwk := &jose.JSONWebKey{
    		Algorithm: string(alg),
    		Key:       publicKey,
    		KeyID:     keyID,
    		Use:       "sig",
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 12 00:23:31 UTC 2020
    - 9.4K bytes
    - Viewed (0)
Back to top