Example usage for javax.naming.ldap Control isCritical

List of usage examples for javax.naming.ldap Control isCritical

Introduction

In this page you can find the example usage for javax.naming.ldap Control isCritical.

Prototype

public boolean isCritical();

Source Link

Document

Determines the criticality of the LDAP control.

Usage

From source file:org.springframework.ldap.core.RequestControlMatcher.java

private boolean controlMatches(Control expected, Control actual) {

    // Compare SortControl
    return StringUtils.equals(expected.getID(), actual.getID()) && expected.isCritical() == actual.isCritical()
            && ArrayUtils.isEquals(expected.getEncodedValue(), actual.getEncodedValue());
}