public final class OpaqueControl extends AbstractControl
Control
implementation intended specifically for handling
controls who's values cannot be encoded or decoded by the codec service.
This situation results when no Control factory is found to be
registered for this control's OID. Hence additional opaque value handling
methods are included to manage the opaque control value.Constructor and Description |
---|
OpaqueControl(String oid)
Creates a Control with a specific OID.
|
OpaqueControl(String oid,
boolean criticality)
Creates a Control with a specific OID, and criticality set.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncodedValue() |
boolean |
hasEncodedValue()
Tells if the control has a stored value.
|
void |
setEncodedValue(byte[] value)
Stores an opaque value into the control.
|
equals, getOid, hashCode, isCritical, setCritical, toString
public OpaqueControl(String oid)
oid
- The OID of this Control.public OpaqueControl(String oid, boolean criticality)
oid
- The OID of this Control.criticality
- true if this Control is critical, false otherwise.public byte[] getEncodedValue()
public void setEncodedValue(byte[] value)
value
- The opaque value to storepublic boolean hasEncodedValue()
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.