Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RawURLEncoding (0.16 sec)

  1. internal/config/identity/openid/jwks.go

    	case "RSA":
    		if key.N == "" || key.E == "" {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		// decode exponent
    		ebuf, err := base64.RawURLEncoding.DecodeString(key.E)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		nbuf, err := base64.RawURLEncoding.DecodeString(key.N)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		var n, e big.Int
    		n.SetBytes(nbuf)
    		e.SetBytes(ebuf)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 23:02:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/continue.go

    // TODO: return a typed error that instructs clients that they must relist
    func DecodeContinue(continueValue, keyPrefix string) (fromKey string, rv int64, err error) {
    	data, err := base64.RawURLEncoding.DecodeString(continueValue)
    	if err != nil {
    		return "", 0, fmt.Errorf("%w: %v", ErrGenericInvalidKey, err)
    	}
    	var c continueToken
    	if err := json.Unmarshal(data, &c); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 17:30:02 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. cmd/object-api-input-checks.go

    	}
    	if uploadIDMarker != "" {
    		if HasSuffix(keyMarker, SlashSeparator) {
    			return InvalidUploadIDKeyCombination{
    				UploadIDMarker: uploadIDMarker,
    				KeyMarker:      keyMarker,
    			}
    		}
    		_, err := base64.RawURLEncoding.DecodeString(uploadIDMarker)
    		if err != nil {
    			return MalformedUploadID{
    				UploadID: uploadIDMarker,
    			}
    		}
    	}
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/continue_test.go

    	out, err := json.Marshal(&continueToken{APIVersion: apiVersion, ResourceVersion: resourceVersion, StartKey: nextKey})
    	if err != nil {
    		panic(err)
    	}
    	return base64.RawURLEncoding.EncodeToString(out)
    }
    
    func Test_decodeContinue(t *testing.T) {
    	type args struct {
    		continueValue string
    		keyPrefix     string
    	}
    	tests := []struct {
    		name        string
    		args        args
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 17:30:02 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. cmd/erasure-utils.go

    	}
    
    	// Success.
    	return totalWritten, nil
    }
    
    // returns deploymentID from uploadID
    func getDeplIDFromUpload(uploadID string) (string, error) {
    	uploadBytes, err := base64.RawURLEncoding.DecodeString(uploadID)
    	if err != nil {
    		return "", fmt.Errorf("error parsing uploadID %s (%w)", uploadID, err)
    	}
    	slc := strings.SplitN(string(uploadBytes), ".", 2)
    	if len(slc) != 2 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/request/websocket/protocol.go

    			}
    			sawTokenProtocol = true
    
    			encodedToken := strings.TrimPrefix(protocol, bearerProtocolPrefix)
    			decodedToken, err := base64.RawURLEncoding.DecodeString(encodedToken)
    			if err != nil {
    				return nil, false, errors.New("invalid base64.bearer.authorization token encoding")
    			}
    			if !utf8.Valid(decodedToken) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. docs/sts/web-identity.go

    	"github.com/minio/minio-go/v7/pkg/credentials"
    )
    
    // Returns a base64 encoded random 32 byte string.
    func randomState() string {
    	b := make([]byte, 32)
    	rand.Read(b)
    	return base64.RawURLEncoding.EncodeToString(b)
    }
    
    var (
    	stsEndpoint    string
    	configEndpoint string
    	clientID       string
    	clientSec      string
    	clientScopes   string
    	port           int
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 19 09:13:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top