X509CertificateSupplier implementation that reads both certificate and private key off of
URL. This class also provides a way to manually refresh the certificate and private key at any
point.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | CERTIFICATE_URL_CONNECTION_READ_TIMEOUT_IN_MILLIS
Set the environment variables to configure read timeout and connection timeout (in milliseconds) for URL Connection |
| private static final String | |
| protected static final String | |
| private static final String | |
| private final AtomicReference | certificateAndKeyPair
The certificate and the private key of certificate. |
| private final URLBasedX509CertificateSupplier. | certificateDetails
The resource details of certificate. |
| private static final boolean | EXPERIMENTAL_SUPPRESS_X509_WORKAROUND
Provide a way for the application environment to disable the X509 workaround by setting a system property to "true". |
| private static final Logger | |
| private final URLBasedX509CertificateSupplier. | privateKeyDetails
The resource details of private key. |
| private final char[] | privateKeyPassphraseCharacters
The passphrase of private key. |
| Access | Constructor and Description |
|---|---|
| public | URLBasedX509CertificateSupplier(URLBasedX509CertificateSupplier.
The certificate resource details certificateResourceDetails,The private key resource details, may be null for
intermediate certificates privateKeyResourceDetails,The private key passphrase, may be null for unencrypted
private keys privateKeyPassphraseCharacters)Constructor. |
| public | URLBasedX509CertificateSupplier(URL
The certificate url certificateUrl, URL The private key url, may be null for intermediate certificates privateKeyUrl, char[] The private key passphrase, may be null for unencrypted
private keys privateKeyPassphraseCharacters)Constructor. |
| public | URLBasedX509CertificateSupplier(URL
The certificate url certificateUrl, URL The private key url, may be null for intermediate certificates privateKeyUrl, String The private key passphrase, may be null for unencrypted private
keys privateKeyPassphrase)
Deprecated
use
URLBasedX509CertificateSupplier#URLBasedX509CertificateSupplier(URL,
URL, char[]) instead
Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public X509Certificate | Returns: The certificate, must not be nullImplements com.
Deprecated
use
X509CertificateSupplier#getCertificateAndKeyPair() instead
Gets the certificate |
| public X509CertificateSupplier. | Returns: The certificate and private key pair.Implements com. Returns the X509 certificate and private key. |
| public RSAPrivateKey | Returns: The private keyImplements com.
Deprecated
use
X509CertificateSupplier#getCertificateAndKeyPair() instead
Corresponding private key of the certificate. |
| private static InputStream | |
| public boolean | Returns: false always.Implements javax. So far we don't care whether the certificate is current or not. |
| private static X509Certificate | Returns: the certificatethe certificate certificate)Read the certificate from a raw string. |
| private static RSAPrivateKey | Returns: the private keythe private key resource details. privateKeyResourceDetails,the private key passhprase privateKeyPassphrase)Read the private key from url. |
| private static String | readRawCertificate(final URLBasedX509CertificateSupplier.
|
| public void | refresh()
Implements javax. A method to refresh the X509 certificate. |
| CERTIFICATE_URL_CONNECTION_READ_TIMEOUT_IN_MILLIS | back to summary |
|---|---|
| protected static final String CERTIFICATE_URL_CONNECTION_READ_TIMEOUT_IN_MILLIS Set the environment variables to configure read timeout and connection timeout (in milliseconds) for URL Connection | |
| CERTIFICATE_URL_CONNECTION_READ_TIMEOUT_IN_MILLIS_VAR_NAME | back to summary |
|---|---|
| private static final String CERTIFICATE_URL_CONNECTION_READ_TIMEOUT_IN_MILLIS_VAR_NAME | |
| CERTIFICATE_URL_CONNECTION_TIMEOUT_IN_MILLIS | back to summary |
|---|---|
| protected static final String CERTIFICATE_URL_CONNECTION_TIMEOUT_IN_MILLIS | |
| CERTIFICATE_URL_CONNECTION_TIMEOUT_IN_MILLIS_VAR_NAME | back to summary |
|---|---|
| private static final String CERTIFICATE_URL_CONNECTION_TIMEOUT_IN_MILLIS_VAR_NAME | |
| certificateAndKeyPair | back to summary |
|---|---|
| private final AtomicReference<X509CertificateSupplier. The certificate and the private key of certificate. | |
| certificateDetails | back to summary |
|---|---|
| private final URLBasedX509CertificateSupplier. The resource details of certificate. | |
| EXPERIMENTAL_SUPPRESS_X509_WORKAROUND | back to summary |
|---|---|
| private static final boolean EXPERIMENTAL_SUPPRESS_X509_WORKAROUND Provide a way for the application environment to disable the X509 workaround by setting a system property to "true". On the command line, this can be done using `-Doci.sdk.experimental.suppressX509Workaround=true` | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| privateKeyDetails | back to summary |
|---|---|
| private final URLBasedX509CertificateSupplier. The resource details of private key. | |
| privateKeyPassphraseCharacters | back to summary |
|---|---|
| private final char[] privateKeyPassphraseCharacters The passphrase of private key. | |
| URLBasedX509CertificateSupplier | back to summary |
|---|---|
| public URLBasedX509CertificateSupplier(URLBasedX509CertificateSupplier. Constructor.
| |
| URLBasedX509CertificateSupplier | back to summary |
|---|---|
| public URLBasedX509CertificateSupplier(URL certificateUrl, URL privateKeyUrl, char[] privateKeyPassphraseCharacters) Constructor. | |
| URLBasedX509CertificateSupplier | back to summary |
|---|---|
| public URLBasedX509CertificateSupplier(URL certificateUrl, URL privateKeyUrl, String privateKeyPassphrase)
Deprecated use Constructor.
| |
| getCertificate | back to summary |
|---|---|
| public X509Certificate getCertificate() Implements com. Deprecated use Gets the certificate
| |
| getCertificateAndKeyPair | back to summary |
|---|---|
| public X509CertificateSupplier. Implements com. Returns the X509 certificate and private key. The X509 certificate will always be valid. The private key may be null for intermediate certificates. For leaf certificates, the private key will always be valid.
| |
| getPrivateKey | back to summary |
|---|---|
| public RSAPrivateKey getPrivateKey() Implements com. Deprecated use Corresponding private key of the certificate. You must implement this method for leaf certificates (to sign the request made to the auth service to get a security token). For intermediate certificates, you can return null.
| |
| getResourceStream | back to summary |
|---|---|
| private static InputStream getResourceStream(final URLBasedX509CertificateSupplier. | |
| isCurrent | back to summary |
|---|---|
| public boolean isCurrent() Implements javax. So far we don't care whether the certificate is current or not.
| |
| readCertificate | back to summary |
|---|---|
| private static X509Certificate readCertificate(String certificate) Read the certificate from a raw string.
| |
| readPrivateKey | back to summary |
|---|---|
| private static RSAPrivateKey readPrivateKey(final URLBasedX509CertificateSupplier. Read the private key from url.
| |
| readRawCertificate | back to summary |
|---|---|
| private static String readRawCertificate(final URLBasedX509CertificateSupplier. | |
| refresh | back to summary |
|---|---|
| public void refresh() Implements javax. A method to refresh the X509 certificate.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | headers
Headers to be sent along with the resource fetch request |
| private final URL | url
The url of the resource |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static URLBasedX509CertificateSupplier. | |
| protected boolean | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Map | |
| public URL | |
| public int | |
| public String |
| headers | back to summary |
|---|---|
| private final Map<String, String> headers Headers to be sent along with the resource fetch request | |
| url | back to summary |
|---|---|
| private final URL url The url of the resource | |
| ResourceDetails | back to summary |
|---|---|
pack-priv ResourceDetails(URL url, Map<String, String> headers)
| |
| builder | back to summary |
|---|---|
| public static URLBasedX509CertificateSupplier. | |
| canEqual | back to summary |
|---|---|
| protected boolean canEqual(final Object other) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getHeaders | back to summary |
|---|---|
| public Map | |
| getUrl | back to summary |
|---|---|
| public URL getUrl() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public URLBasedX509CertificateSupplier. | |
| public URLBasedX509CertificateSupplier. | |
| public String | |
| public URLBasedX509CertificateSupplier. |
| headers | back to summary |
|---|---|
| private Map<String, String> headers | |
| url | back to summary |
|---|---|
| private URL url | |
| ResourceDetailsBuilder | back to summary |
|---|---|
| pack-priv ResourceDetailsBuilder() | |
| build | back to summary |
|---|---|
| public URLBasedX509CertificateSupplier. | |
| headers | back to summary |
|---|---|
| public URLBasedX509CertificateSupplier. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| url | back to summary |
|---|---|
| public URLBasedX509CertificateSupplier. | |