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 Controlaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2017 aicas GmbH. All Rights Reserved.