public class ExchangeParamFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CRYPTOPRO_XCHA
Id for parameter "1.2.643.2.2.36.0".
|
static int |
CRYPTOPRO_XCHB
Id for parameter "1.2.643.2.2.36.1".
|
static int |
DEFAULT
default parameter index CRYPTOPRO_A.
|
Modifier and Type | Method and Description |
---|---|
static ExchangeParamInterface |
decode(byte[] encoded,
int offset)
get parameter by asn1 encoded oid.
|
static int |
getAmount()
get amount of all available parameters.
|
static java.util.Enumeration<ExchangeParamInterface> |
getEnumeration()
Get Enumeration of all available parameters
|
static ExchangeParamInterface |
getInstance()
get default parameter.
|
static ExchangeParamInterface |
getInstance(int index)
get parameter by index.
|
static ExchangeParamInterface |
getInstance(OID oid)
get parameter by OID.
|
static ExchangeParamInterface |
getInstance(java.lang.String str)
get parameter by oid string.
|
static java.util.Iterator<ExchangeParamInterface> |
getIterator()
Get Iterator of all available parameters
|
public static final int CRYPTOPRO_XCHA
public static final int CRYPTOPRO_XCHB
public static final int DEFAULT
public static ExchangeParamInterface getInstance()
public static ExchangeParamInterface getInstance(int index)
index
- parameter indexpublic static ExchangeParamInterface getInstance(OID oid)
oid
- parameter oidpublic static ExchangeParamInterface getInstance(java.lang.String str)
str
- oid stringpublic static ExchangeParamInterface decode(byte[] encoded, int offset)
encoded
- DER encoded oidoffset
- offset in encodedpublic static int getAmount()
public static java.util.Enumeration<ExchangeParamInterface> getEnumeration()
public static java.util.Iterator<ExchangeParamInterface> getIterator()