public class CustomParams extends Asn1Compatible
| Constructor and Description |
|---|
CustomParams()
Create new instance of
CustomParams. |
CustomParams(CustomParams params)
Create new instance of
CustomParams. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear custom parameters.
|
void |
close() |
byte[] |
getData(Key key)
Get binary parameter by key
|
int |
getInteger(Key key)
Get value of custom parameter of
Integer type by key. |
byte[] |
getString(Key key)
Get value of custom parameter of
String type by key. |
protected VirgilAsn1Compatible |
getWrappedASN() |
boolean |
isEmpty() |
void |
removeData(Key key)
Remove binary parameter by key.
|
void |
removeInteger(Key key)
Remove parameter of
Integer type by key. |
void |
removeString(Key key)
Remove parameter of
String type by key. |
void |
setData(Key key,
byte[] value)
Set binary custom parameter.
|
void |
setInteger(Key key,
int value)
Set custom parameter of
Integer type. |
void |
setString(Key key,
byte[] value)
Set custom parameter of
String type. |
fromAsn1, toAsn1public CustomParams()
CustomParams.public CustomParams(CustomParams params)
CustomParams.params - the parameters for created new CustomParamspublic boolean isEmpty()
true if custom parameters are empty.public void clear()
public void setInteger(Key key, int value)
Integer type.key - the parameter's key (name).value - the parameter's value.public int getInteger(Key key)
Integer type by key.key - the parameter's key (name).public void removeInteger(Key key)
Integer type by key.key - the parameter's key (name).public void setString(Key key, byte[] value)
String type.key - the parameter's key (name).value - the parameter's value.public byte[] getString(Key key)
String type by key.key - the parameter's key (name).public void removeString(Key key)
String type by key.key - the parameter's key (name).public void setData(Key key, byte[] value)
key - the parameter's key (name).value - the parameter's value.public byte[] getData(Key key)
key - the parameter's key (name).public void removeData(Key key)
key - the parameter's key (name).protected VirgilAsn1Compatible getWrappedASN()
getWrappedASN in class Asn1Compatiblepublic void close()
throws Exception
close in interface AutoCloseableclose in class Asn1CompatibleExceptionCopyright © 2016. All rights reserved.