Tabnine Logo
SECNamedCurves.getByOID
Code IndexAdd Tabnine to your IDE (free)

How to use
getByOID
method
in
org.spongycastle.asn1.sec.SECNamedCurves

Best Java code snippets using org.spongycastle.asn1.sec.SECNamedCurves.getByOID (Showing top 11 results out of 315)

origin: com.madgag.spongycastle/core

/**
 * return the X9ECParameters object for the named curve represented by
 * the passed in object identifier. Null if the curve isn't present.
 *
 * @param oid an object identifier representing a named curve, if present.
 */
public static X9ECParameters getByOID(
  ASN1ObjectIdentifier  oid)
{
  return SECNamedCurves.getByOID(oid);
}
origin: com.madgag/sc-light-jdk15on

/**
 * return the X9ECParameters object for the named curve represented by
 * the passed in object identifier. Null if the curve isn't present.
 *
 * @param oid an object identifier representing a named curve, if present.
 */
public static X9ECParameters getByOID(
  ASN1ObjectIdentifier  oid)
{
  return SECNamedCurves.getByOID(oid);
}
origin: com.madgag.spongycastle/core

public static X9ECParameters getByName(
  String name)
{
  ASN1ObjectIdentifier oid = getOID(name);
  return oid == null ? null : getByOID(oid);
}
origin: com.madgag/sc-light-jdk15on

public static X9ECParameters getByName(
  String name)
{
  ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toLowerCase(name));
  if (oid != null)
  {
    return getByOID(oid);
  }
  return null;
}
origin: com.madgag/scprov-jdk15on

public static X9ECParameters getNamedCurveByOid(
  ASN1ObjectIdentifier oid)
{
  X9ECParameters params = X962NamedCurves.getByOID(oid);
  
  if (params == null)
  {
    params = SECNamedCurves.getByOID(oid);
    if (params == null)
    {
      params = NISTNamedCurves.getByOID(oid);
    }
    if (params == null)
    {
      params = TeleTrusTNamedCurves.getByOID(oid);
    }
  }
  return params;
}
origin: com.madgag.spongycastle/core

/**
 * return a X9ECParameters object representing the passed in named
 * curve.
 *
 * @param oid the object id of the curve requested
 * @return an X9ECParameters object or null if the curve is not available.
 */
public static X9ECParameters getByOID(
  ASN1ObjectIdentifier oid)
{
  X9ECParameters ecP = X962NamedCurves.getByOID(oid);
  if (ecP == null)
  {
    ecP = SECNamedCurves.getByOID(oid);
  }
  // NOTE: All the NIST curves are currently from SEC, so no point in redundant OID lookup
  if (ecP == null)
  {
    ecP = TeleTrusTNamedCurves.getByOID(oid);
  }
  if (ecP == null)
  {
    ecP = ANSSINamedCurves.getByOID(oid);
  }
  if (ecP == null)
  {
    ecP = GMNamedCurves.getByOID(oid);
  }
  return ecP;
}
origin: com.madgag.spongycastle/prov

public static X9ECParameters getNamedCurveByOid(
  ASN1ObjectIdentifier oid)
{
  X9ECParameters params = CustomNamedCurves.getByOID(oid);
  if (params == null)
  {
    params = X962NamedCurves.getByOID(oid);
    if (params == null)
    {
      params = SECNamedCurves.getByOID(oid);
    }
    if (params == null)
    {
      params = NISTNamedCurves.getByOID(oid);
    }
    if (params == null)
    {
      params = TeleTrusTNamedCurves.getByOID(oid);
    }
    if (params == null)
    {
      params = ANSSINamedCurves.getByOID(oid);
    }
    if (params == null)
    {
      params = GMNamedCurves.getByOID(oid);
    }
  }
  return params;
}
origin: com.madgag/scprov-jdk15on

ecP = SECNamedCurves.getByOID(new ASN1ObjectIdentifier(name));
origin: com.madgag/scprov-jdk15on

if (ecP == null)
  ecP = SECNamedCurves.getByOID(oid);
origin: com.madgag/sc-light-jdk15on

x9 = SECNamedCurves.getByOID(oid);
origin: com.madgag/sc-light-jdk15on

x9 = SECNamedCurves.getByOID(oid);
org.spongycastle.asn1.secSECNamedCurvesgetByOID

Javadoc

return the X9ECParameters object for the named curve represented by the passed in object identifier. Null if the curve isn't present.

Popular methods of SECNamedCurves

  • getByName
  • getName
    return the named curve name represented by the given object identifier.
  • getOID
    return the object identifier signified by the passed in name. Null if there is no object identifier
  • getNames
    returns an enumeration containing the name strings for curves contained in this structure.

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now