Search in sources :

Example 1 with NestedCredentialHandler

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);
    }
}
Also used : NestedCredentialHandler(org.apache.catalina.realm.NestedCredentialHandler) CredentialHandler(org.apache.catalina.CredentialHandler) NestedCredentialHandler(org.apache.catalina.realm.NestedCredentialHandler)

Aggregations

CredentialHandler (org.apache.catalina.CredentialHandler)1 NestedCredentialHandler (org.apache.catalina.realm.NestedCredentialHandler)1