Class BasicNamedCurve
- java.lang.Object
-
- org.opensaml.security.crypto.ec.curves.BasicNamedCurve
-
- All Implemented Interfaces:
NamedCurve
public class BasicNamedCurve extends Object implements NamedCurve
Basic implementations ofNamedCurvewhere all required properties are simply supplied at construction time.
-
-
Field Summary
Fields Modifier and Type Field Description private StringnameCurve name.private StringoidCurve OID.private ECParameterSpecparamsCurve's parameters as an instance ofECParameterSpec.
-
Constructor Summary
Constructors Constructor Description BasicNamedCurve(String objectIdentifier, String standardName, ECParameterSpec parameters)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Get the curve's canonical name by which it is known to the Java Cryptography Architecture (JCA).StringgetObjectIdentifier()Get the curve's object identifier (OID).ECParameterSpecgetParameterSpec()Get the curve'sECParameterSpec.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opensaml.security.crypto.ec.NamedCurve
getKeyLength, getURI
-
-
-
-
Field Detail
-
name
@Nonnull private String name
Curve name.
-
oid
@Nonnull private String oid
Curve OID.
-
params
@Nonnull private ECParameterSpec params
Curve's parameters as an instance ofECParameterSpec.
-
-
Constructor Detail
-
BasicNamedCurve
public BasicNamedCurve(@Nonnull String objectIdentifier, @Nonnull String standardName, @Nonnull ECParameterSpec parameters)Constructor.- Parameters:
objectIdentifier- the curve's object identifier (OID)standardName- the curve's standard nameparameters- the curve's parameters as anECParameterSpec
-
-
Method Detail
-
getObjectIdentifier
public String getObjectIdentifier()
Get the curve's object identifier (OID).- Specified by:
getObjectIdentifierin interfaceNamedCurve- Returns:
- the OID
-
getName
public String getName()
Get the curve's canonical name by which it is known to the Java Cryptography Architecture (JCA).- Specified by:
getNamein interfaceNamedCurve- Returns:
- the name
-
getParameterSpec
public ECParameterSpec getParameterSpec()
Get the curve'sECParameterSpec.- Specified by:
getParameterSpecin interfaceNamedCurve- Returns:
- the parameter spec instance
-
-