1 8 9 package javax.naming.ldap; 10 11 19 public class BasicControl implements Control { 20 21 26 protected String id; 27 28 33 protected boolean criticality = false; 35 40 protected byte[] value = null; 41 42 private static final long serialVersionUID = -4233907508771791687L; 43 44 50 public BasicControl(String id) { 51 this.id = id; 52 } 53 54 64 public BasicControl(String id, boolean criticality, byte[] value) { 65 this.id = id; 66 this.criticality = criticality; 67 this.value = value; 68 } 69 70 75 public String getID() { 76 return id; 77 } 78 79 84 public boolean isCritical() { 85 return criticality; 86 } 87 88 97 public byte[] getEncodedValue() { 98 return value; 99 } 100 } 101 | Popular Tags |