public final class LunaNamedCurve
extends java.security.spec.ECParameterSpec
Modifier and Type | Method and Description |
---|---|
static LunaNamedCurve |
getECParameterSpec(int length)
Return EC parameters for the specified field size.
|
static LunaNamedCurve |
getECParameterSpec(com.safenetinc.luna.der.ObjectIdentifier oid)
Return a NamedCurve for the specified OID or null if unknown.
|
static LunaNamedCurve |
getECParameterSpec(java.lang.String name)
Checks the OID map for the given string.
|
static LunaNamedCurve |
getECParameterSpecById(int id)
Returns the LunaNamedCurve corresponding to the given internal curve id.
|
byte[] |
getEncoded() |
java.lang.String |
getName() |
static LunaNamedCurve |
getNamedCurve(java.security.spec.ECParameterSpec params)
Look up the LunaNamedCurve corresponding to the parameters in the given ECParameterSpec object.
|
com.safenetinc.luna.der.ObjectIdentifier |
getObjectIdentifier() |
boolean |
getweierstrassForm() |
static java.util.Collection<LunaNamedCurve> |
knownECParameterSpecs() |
boolean |
matches(java.security.spec.ECParameterSpec params) |
java.lang.String |
toString() |
public byte[] getEncoded()
public com.safenetinc.luna.der.ObjectIdentifier getObjectIdentifier()
public java.lang.String getName()
public boolean getweierstrassForm()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean matches(java.security.spec.ECParameterSpec params)
public static LunaNamedCurve getECParameterSpec(com.safenetinc.luna.der.ObjectIdentifier oid)
oid
- object idpublic static LunaNamedCurve getECParameterSpec(java.lang.String name)
name
- OID or common namepublic static LunaNamedCurve getECParameterSpec(int length)
length
- field sizepublic static LunaNamedCurve getECParameterSpecById(int id)
id
- An internal numerical identifier for this curve.public static LunaNamedCurve getNamedCurve(java.security.spec.ECParameterSpec params)
params
- The EC parameter spec to convertpublic static java.util.Collection<LunaNamedCurve> knownECParameterSpecs()
Copyright 2014-2018 SafeNet. All rights reserved.