Class ECDomainParametersIndex
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.ECDomainParametersIndex
-
public class ECDomainParametersIndex extends java.lang.Object
General index for Elliptic Curve parameters.
-
-
Constructor Summary
Constructors Constructor Description ECDomainParametersIndex()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamedECDomainParameters
lookupDomainParameters(ASN1ObjectIdentifier paramOid)
Retrieve an EC based domain parameter by OID.static NamedECDomainParameters
lookupDomainParameters(ECDomainParametersID paramID)
Retrieve an EC based domain parameter by parameter ID.static ASN1ObjectIdentifier
lookupOID(ECDomainParameters domainParameters)
-
-
-
Method Detail
-
lookupDomainParameters
public static NamedECDomainParameters lookupDomainParameters(ASN1ObjectIdentifier paramOid)
Retrieve an EC based domain parameter by OID. A custom curve will be returned if one is available.- Parameters:
paramOid
- object identifier for the domain parameters.- Returns:
- the matching domain parameters if found, null otherwise.
-
lookupDomainParameters
public static NamedECDomainParameters lookupDomainParameters(ECDomainParametersID paramID)
Retrieve an EC based domain parameter by parameter ID. A custom curve will be returned if one is available.- Parameters:
paramID
- identifier for the domain parameters.- Returns:
- the matching domain parameters if found, null otherwise.
-
lookupOID
public static ASN1ObjectIdentifier lookupOID(ECDomainParameters domainParameters)
-
-