Class NamedCurvesTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.security.crypto.ec.BaseNamedCurveTest
-
- org.opensaml.security.crypto.ec.curves.NamedCurvesTest
-
public class NamedCurvesTest extends BaseNamedCurveTest
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description NamedCurvesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidglobalRegistryCurves(String namedCurve)private StringmapBCCurveName(String standardName)BC sometimes has slightly different curve simple names from SunEC, so translate here...voidsanityCheckOIDAndNameAndParams()Use Bouncy Castle's curve table to sanity check all registered curves that OID and name match, i.e.-
Methods inherited from class org.opensaml.security.crypto.ec.BaseNamedCurveTest
namedCurves
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Method Detail
-
globalRegistryCurves
public void globalRegistryCurves(String namedCurve) throws Exception
- Throws:
Exception
-
sanityCheckOIDAndNameAndParams
public void sanityCheckOIDAndNameAndParams() throws ExceptionUse Bouncy Castle's curve table to sanity check all registered curves that OID and name match, i.e. resolve to equivalent instances of ECParameterSpec, and that curve matches the NamedCurve's params.This test assumes that all curves we'd ever register and ship with the library will be supported by Bouncy Castle. If this ever becomes untrue, we can always disable the test, or remove the curves if there is a security or other reason to stop supporting it.
- Throws:
Exception
-
-