public class ClientAuthenticationCache extends Object implements Serializable
This object encapsulates a remote manipulation of the credential store. We store encrypted user names.
| Constructor and Description |
|---|
ClientAuthenticationCache(hudson.remoting.Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
org.acegisecurity.Authentication |
get()
Gets the persisted authentication for this Jenkins.
|
void |
remove()
Removes the persisted credential, if there's one.
|
void |
set(org.acegisecurity.Authentication a)
Persists the specified authentication.
|
public ClientAuthenticationCache(hudson.remoting.Channel channel)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic org.acegisecurity.Authentication get()
Jenkins.ANONYMOUS if no such credential is found, or if the stored credential is invalid.public void set(org.acegisecurity.Authentication a)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void remove()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.