Class BasicNamedCurve
java.lang.Object
org.opensaml.security.crypto.ec.curves.BasicNamedCurve
- All Implemented Interfaces:
NamedCurve
Basic implementations of
NamedCurve where all required properties are simply supplied at
construction time.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringCurve name.private StringCurve OID.private ECParameterSpecCurve's parameters as an instance ofECParameterSpec. -
Constructor Summary
ConstructorsConstructorDescriptionBasicNamedCurve(String objectIdentifier, String standardName, ECParameterSpec parameters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the curve's canonical name by which it is known to the Java Cryptography Architecture (JCA).Get the curve's object identifier (OID).Get the curve'sECParameterSpec.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensaml.security.crypto.ec.NamedCurve
getKeyLength, getURI
-
Field Details
-
name
Curve name. -
oid
Curve OID. -
params
Curve's parameters as an instance ofECParameterSpec.
-
-
Constructor Details
-
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 Details
-
getObjectIdentifier
Get the curve's object identifier (OID).- Specified by:
getObjectIdentifierin interfaceNamedCurve- Returns:
- the OID
-
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
Get the curve'sECParameterSpec.- Specified by:
getParameterSpecin interfaceNamedCurve- Returns:
- the parameter spec instance
-
toString
-