Interface NamedCurveRegistry
-
- All Known Implementing Classes:
NamedCurveRegistryImpl,NamedCurveRegistrySingleton,StaticNamedCurveRegistry
public interface NamedCurveRegistryA registry for named curves.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamedCurvegetCurve(String name)Gets aNamedCurvebased on its name.NamedCurvegetCurve(Predicate<NamedCurve> predicate)Gets aNamedCurvebased on the given predicate.List<NamedCurve>getCurves(Predicate<NamedCurve> predicate)Gets all curves that matches the given predicate.
-
-
-
Method Detail
-
getCurve
NamedCurve getCurve(String name)
Gets aNamedCurvebased on its name.- Parameters:
name- the name- Returns:
- the NamedCurve or null if no match is found
-
getCurve
NamedCurve getCurve(Predicate<NamedCurve> predicate)
Gets aNamedCurvebased on the given predicate.- Parameters:
predicate- the predicate- Returns:
- the first curve that matches the supplied predicate, or null if no matches are found
-
getCurves
List<NamedCurve> getCurves(Predicate<NamedCurve> predicate)
Gets all curves that matches the given predicate.- Parameters:
predicate- the predicate- Returns:
- a (possibly empty) list of NamedCurve objects
-
-