зеркало из https://github.com/mozilla/gecko-dev.git
override INTEGER.getTemplate() with one that returns an ENUMERATED.Template.
This commit is contained in:
Родитель
b618ed4bea
Коммит
72d7f9c27c
|
@ -64,6 +64,13 @@ public class ENUMERATED extends INTEGER implements ASN1Value {
|
|||
return longValue();
|
||||
}
|
||||
|
||||
private static final ENUMERATED.Template templateInstance =
|
||||
new ENUMERATED.Template();
|
||||
public static ASN1Template getTemplate() {
|
||||
return templateInstance;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A template for decoding ENUMERATED values from their BER encodings.
|
||||
* The template reads the value as an INTEGER. It does not check that it
|
||||
|
|
Загрузка…
Ссылка в новой задаче