public final class ThreadLocalX509CredentialContext extends Object
X509Credential via ThreadLocal storage,
typically used for client TLS authentication via ThreadLocalX509CredentialKeyManager.| Modifier and Type | Field and Description |
|---|---|
private static ThreadLocal<X509Credential> |
currentCredential
ThreadLocal storage for credential.
|
| Modifier | Constructor and Description |
|---|---|
private |
ThreadLocalX509CredentialContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCurrent()
Clear the current thread-local credential.
|
static X509Credential |
getCredential()
Return the current thread-local
X509Credential. |
static boolean |
haveCurrent()
Get whether the current thread-local is populated with a non-null value.
|
static void |
loadCurrent(X509Credential credential)
Load the thread-local storage with the current credential.
|
private static ThreadLocal<X509Credential> currentCredential
private ThreadLocalX509CredentialContext()
public static void loadCurrent(@Nonnull X509Credential credential)
credential - the current X509Credentialpublic static void clearCurrent()
public static boolean haveCurrent()
@Nullable public static X509Credential getCredential()
X509Credential.Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.