use of org.apache.catalina.realm.NestedCredentialHandler in project tomcat by apache.
the class CredentialHandlerSF method storeChildren.
/**
* Store the specified CredentialHandler properties and child (CredentialHandler)
*
* @param aWriter
* PrintWriter to which we are storing
* @param indent
* Number of spaces to indent this element
* @param aCredentialHandler
* CredentialHandler whose properties are being stored
*
* @exception Exception
* if an exception occurs while storing
*/
@Override
public void storeChildren(PrintWriter aWriter, int indent, Object aCredentialHandler, StoreDescription parentDesc) throws Exception {
if (aCredentialHandler instanceof NestedCredentialHandler) {
NestedCredentialHandler nestedCredentialHandler = (NestedCredentialHandler) aCredentialHandler;
// Store nested <CredentialHandler> element
CredentialHandler[] credentialHandlers = nestedCredentialHandler.getCredentialHandlers();
storeElementArray(aWriter, indent, credentialHandlers);
}
}
Aggregations