swagger2markup/src/main/java/io/github/swagger2markup/internal/document/SecurityDocument.java
/**
     * Builds the security MarkupDocument.
     *
     * @return the security MarkupDocument
     */
Builds the security MarkupDocument.
@return the security MarkupDocument
Builds the security MarkupDocument . @return the security MarkupDocument
@Override
    public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, SecurityDocument.Parameters params) {
        Map<String, SecuritySchemeDefinition> definitions = params.securitySchemeDefinitions;
        if (MapUtils.isNotEmpty(definitions)) {
            applySecurityDocumentExtension(new Context(Position.DOCUMENT_BEFORE, markupDocBuilder));
            buildSecurityTitle(markupDocBuilder, labels.getLabel(SECURITY));
            applySecurityDocumentExtension(new Context(Position.DOCUMENT_BEGIN, markupDocBuilder));
            buildSecuritySchemeDefinitionsSection(markupDocBuilder, definitions);
            applySecurityDocumentExtension(new Context(Position.DOCUMENT_END, markupDocBuilder));
            applySecurityDocumentExtension(new Context(Position.DOCUMENT_AFTER, markupDocBuilder));
        }
        return markupDocBuilder;
    }
@ Override public MarkupDocBuilder apply ( MarkupDocBuilder markupDocBuilder , SecurityDocument . Parameters params ) { Map < String , SecuritySchemeDefinition > definitions = params . securitySchemeDefinitions ; if ( MapUtils . isNotEmpty ( definitions ) ) { applySecurityDocumentExtension ( new Context ( Position . DOCUMENT_BEFORE , markupDocBuilder ) ) ; buildSecurityTitle ( markupDocBuilder , labels . getLabel ( SECURITY ) ) ; applySecurityDocumentExtension ( new Context ( Position . DOCUMENT_BEGIN , markupDocBuilder ) ) ; buildSecuritySchemeDefinitionsSection ( markupDocBuilder , definitions ) ; applySecurityDocumentExtension ( new Context ( Position . DOCUMENT_END , markupDocBuilder ) ) ; applySecurityDocumentExtension ( new Context ( Position . DOCUMENT_AFTER , markupDocBuilder ) ) ; } return markupDocBuilder ; }
Builds the security MarkupDocument.
Builds the security MarkupDocument .