File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\cli\LogoutCommand.java.html

1 package hudson.cli;
2
3 import hudson.Extension;
4
5 /**
6 * Deletes the credential stored with the login command.
7 *
8 * @author Kohsuke Kawaguchi
9 * @since 1.351
10 */
11 @Extension
12 public class LogoutCommand extends CLICommand {
13 @Override
14 public String getShortDescription() {
15 return Messages.LogoutCommand_ShortDescription();
16 }
17
18 @Override
19 protected int run() throws Exception {
20 ClientAuthenticationCache store = new ClientAuthenticationCache(checkChannel());
21 store.remove();
22 return 0;
23 }
24 }
25