Class AlgorithmParametersSpi
- java.lang.Object
-
- java.security.AlgorithmParametersSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.edec.AlgorithmParametersSpi
-
- Direct Known Subclasses:
AlgorithmParametersSpi.Ed25519,AlgorithmParametersSpi.Ed448
public class AlgorithmParametersSpi extends java.security.AlgorithmParametersSpiAlgorithmParameters for the RFC 8032 EdDSA instance selectors (prehash / context) carried byEdDSAParameterSpec. These parameters have no encoded form: RFC 8410 specifies the EdDSA AlgorithmIdentifier with absent parameters, and the prehash flag / context are not part of any standard ASN.1 parameter structure, soengineGetEncoded/engineInit(byte[])throwIOException. The class exists as a spec container so that Signature.getParameters() can report the selected instance and callers can copy it between Signature objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlgorithmParametersSpi.Ed25519static classAlgorithmParametersSpi.Ed448
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]engineGetEncoded()protected byte[]engineGetEncoded(java.lang.String format)protected java.security.spec.AlgorithmParameterSpecengineGetParameterSpec(java.lang.Class paramSpec)protected voidengineInit(byte[] params)protected voidengineInit(byte[] params, java.lang.String format)protected voidengineInit(java.security.spec.AlgorithmParameterSpec paramSpec)protected java.lang.StringengineToString()
-
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException- Specified by:
engineInitin classjava.security.AlgorithmParametersSpi- Throws:
java.security.spec.InvalidParameterSpecException
-
engineInit
protected void engineInit(byte[] params) throws java.io.IOException- Specified by:
engineInitin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineInit
protected void engineInit(byte[] params, java.lang.String format) throws java.io.IOException- Specified by:
engineInitin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineGetParameterSpec
protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec) throws java.security.spec.InvalidParameterSpecException- Specified by:
engineGetParameterSpecin classjava.security.AlgorithmParametersSpi- Throws:
java.security.spec.InvalidParameterSpecException
-
engineGetEncoded
protected byte[] engineGetEncoded() throws java.io.IOException- Specified by:
engineGetEncodedin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineGetEncoded
protected byte[] engineGetEncoded(java.lang.String format) throws java.io.IOException- Specified by:
engineGetEncodedin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineToString
protected java.lang.String engineToString()
- Specified by:
engineToStringin classjava.security.AlgorithmParametersSpi
-
-