Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lastUsedTime (0.11 sec)

  1. pilot/pkg/model/jwks_resolver.go

    			r.keyEntries.Store(k, jwtPubKeyEntry{
    				pubKey:            newPubKey,
    				lastRefreshedTime: now,            // update the lastRefreshedTime if we get a success response from the network.
    				lastUsedTime:      e.lastUsedTime, // keep original lastUsedTime.
    				timeout:           e.timeout,
    			})
    			isNewKey, err := compareJWKSResponse(oldPubKey, newPubKey)
    			if err != nil {
    				hasErrors.Store(true)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. pilot/pkg/model/jwks_resolver_test.go

    	if test.JwtPubKey1 != pk {
    		t.Fatalf("GetPublicKey(\"\", %+v): expected (%s), got (%s)", mockCertURL, test.JwtPubKey1, pk)
    	}
    
    	// Keep getting the public key to change the lastUsedTime of the public key.
    	done := make(chan struct{})
    	go func() {
    		c := time.NewTicker(10 * time.Millisecond)
    		for {
    			select {
    			case <-done:
    				c.Stop()
    				return
    			case <-c.C:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top