Type Alias GCPKMSProviderConfiguration

GCPKMSProviderConfiguration: {
    email: string;
    endpoint?: string;
    privateKey: string | Buffer;
} | {
    accessToken: string;
}

Type declaration

  • email: string

    The service account email to authenticate要验证的服务帐户电子邮件

  • Optionalendpoint?: string

    If present, a host with optional port. E.g. "example.com" or "example.com:443". Defaults to "oauth2.googleapis.com"如果存在,则指具有可选端口的主机。例如“example.com”或“example.com:443”。默认为“oauth2.googleapis.com

  • privateKey: string | Buffer

    A PKCS#8 encrypted key. This can either be a base64 string or a binary representationPKCS#8加密键。这可以是base64字符串或二进制表示形式

Type declaration

  • accessToken: string

    If present, an access token to authenticate with GCP.如果存在,则提供用于与GCP进行身份验证的访问令牌。