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

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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