public class OAuth2Utils extends Object
These classes are marked public but should be treated effectively as internal classes only.
They are not subject to any backwards compatibility guarantees and might change or be removed at
any time. They are provided only as a convenience for other libraries within the com.google.auth family. Application developers should avoid using these classes directly; they
are not part of the public API.
| Modifier and Type | Field and Description |
|---|---|
static HttpTransportFactory |
HTTP_TRANSPORT_FACTORY |
static Set<Integer> |
TOKEN_ENDPOINT_RETRYABLE_STATUS_CODES |
static String |
TOKEN_EXCHANGE_URL_FORMAT |
static String |
TOKEN_TYPE_ACCESS_BOUNDARY_INTERMEDIARY_TOKEN |
static String |
TOKEN_TYPE_ACCESS_TOKEN |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
privateKeyFromPkcs8(String privateKeyPkcs8)
Converts a PKCS#8 string to an RSA private key.
|
public static final String TOKEN_TYPE_ACCESS_TOKEN
public static final String TOKEN_TYPE_ACCESS_BOUNDARY_INTERMEDIARY_TOKEN
public static final String TOKEN_EXCHANGE_URL_FORMAT
public static final HttpTransportFactory HTTP_TRANSPORT_FACTORY
public static PrivateKey privateKeyFromPkcs8(String privateKeyPkcs8) throws IOException
privateKeyPkcs8 - the PKCS#8 string.IOException - if the PKCS#8 data is invalid or if an unexpected exception occurs during
key creation.Copyright © 2025 Google. All rights reserved.