public class BasicControl extends Object implements Control
| Modifier and Type | Field and Description | 
|---|---|
protected boolean | 
criticality
The control's criticality. 
 | 
protected String | 
id
The control's object identifier string. 
 | 
protected byte[] | 
value
The control's ASN.1 BER encoded value. 
 | 
CRITICAL, NONCRITICAL| Constructor and Description | 
|---|
BasicControl(String id)
Constructs a non-critical control. 
 | 
BasicControl(String id,
            boolean criticality,
            byte[] value)
Constructs a control using the supplied arguments. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
getEncodedValue()
Retrieves the control's ASN.1 BER encoded value. 
 | 
String | 
getID()
Retrieves the control's object identifier string. 
 | 
boolean | 
isCritical()
Determines the control's criticality. 
 | 
protected String id
protected boolean criticality
protected byte[] value
public BasicControl(String id)
id - The control's object identifier string.public BasicControl(String id, boolean criticality, byte[] value)
id - The control's object identifier string.criticality - The control's criticality.value - The control's ASN.1 BER encoded value.
                          It is not cloned - any changes to value
                          will affect the contents of the control.
                          It may be null.public String getID()
public boolean isCritical()
isCritical in interface Controlpublic byte[] getEncodedValue()
getEncodedValue in interface Control Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2013, Oracle and/or its affiliates.  All rights reserved.