hudson.cli
Class ClientAuthenticationCache

java.lang.Object
  extended by hudson.cli.ClientAuthenticationCache
All Implemented Interfaces:
Serializable

public class ClientAuthenticationCache
extends Object
implements Serializable

Represents the authentication credential store of the CLI client.

This object encapsulates a remote manipulation of the credential store. We store encrypted user names.

Since:
1.351
Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Constructor Summary
ClientAuthenticationCache(hudson.remoting.Channel channel)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientAuthenticationCache

public ClientAuthenticationCache(hudson.remoting.Channel channel)
                          throws IOException,
                                 InterruptedException
Throws:
IOException
InterruptedException
Method Detail

get

public org.acegisecurity.Authentication get()
Gets the persisted authentication for this Jenkins.

Returns:
Jenkins.ANONYMOUS if no such credential is found, or if the stored credential is invalid.

set

public void set(org.acegisecurity.Authentication a)
         throws IOException,
                InterruptedException
Persists the specified authentication.

Throws:
IOException
InterruptedException

remove

public void remove()
            throws IOException,
                   InterruptedException
Removes the persisted credential, if there's one.

Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.