/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ShowAgent.java,v 1.8 2008/06/25 05:42:10 qcheng Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
*/
/**
* This command gets attribute values of an agent.
*/
/**
* Services a Commandline Request.
*
* @param rc Request Context.
* @throws CLIException if the request cannot serviced.
*/
throws CLIException {
super.handleRequest(rc);
ldapLogin();
try {
params);
"FAILED_SHOW_AGENT", args);
getResourceString("show-agent-agent-does-not-exist"), p);
throw new CLIException(msg,
}
// OAUTH2 agent passwords are stored in plaintext so should not be included since they are not hashed.
includeHashedPassword = false;
}
// Used to generated a sorted list of property names for easier viewing
// Always true if user has asked to include the hashed password in the export.
} else {
) {
}
}
}
}
}
} else {
"show-agent-to-file"));
}
} else {
"show-agent-no-attributes"));
}
params);
} catch (SMSException e) {
debugError("ShowAgent.handleRequest", e);
"FAILED_SHOW_AGENT", args);
} catch (IdRepoException e) {
debugError("ShowAgent.handleRequest", e);
"FAILED_SHOW_AGENT", args);
} catch (SSOException e) {
debugError("ShowAgent.handleRequest", e);
"FAILED_SHOW_AGENT", args);
}
}
throws CLIException {
try {
} catch (FileNotFoundException e) {
debugError("ShowAgent.writeToFile", e);
} catch (SecurityException e) {
debugError("ShowAgent.writeToFile", e);
} finally {
try {
}
}
} catch (IOException ex) {
//do nothing
}
}
}
}