Class SignatureTrailerDataContentBuilder.HybridSelector
java.lang.Object
zeroecho.sdk.builders.SignatureTrailerDataContentBuilder.HybridSelector
- Enclosing class:
SignatureTrailerDataContentBuilder
Helper entry for hybrid signature construction.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionsign(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule rule, PrivateKey classicPrivate, PrivateKey pqcPrivate, int maxBodyBytes) Creates a hybrid signing trailer with optional specs and explicitmaxBodyBytes.sign(String classicSigId, String pqcSigId, HybridSignatureProfile.VerifyRule rule, PrivateKey classicPrivate, PrivateKey pqcPrivate) Creates a hybrid signing trailer for the common case where both specs arenull.verify(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule rule, PublicKey classicPublic, PublicKey pqcPublic, int maxBodyBytes) Creates a hybrid verification trailer with optional specs and explicitmaxBodyBytes.verify(String classicSigId, String pqcSigId, HybridSignatureProfile.VerifyRule rule, PublicKey classicPublic, PublicKey pqcPublic) Creates a hybrid verification trailer for the common case where both specs arenull.
-
Method Details
-
sign
public SignatureTrailerDataContentBuilder sign(String classicSigId, String pqcSigId, HybridSignatureProfile.VerifyRule rule, PrivateKey classicPrivate, PrivateKey pqcPrivate) Creates a hybrid signing trailer for the common case where both specs arenull.- Parameters:
classicSigId- classic signature algorithm idpqcSigId- post-quantum signature algorithm idrule- aggregation ruleclassicPrivate- classic private keypqcPrivate- PQC private key- Returns:
- builder ready to be added to a pipeline
- Throws:
NullPointerException- if any required argument isnullIllegalStateException- if the hybrid context cannot be created- Since:
- 1.0
-
verify
public SignatureTrailerDataContentBuilder verify(String classicSigId, String pqcSigId, HybridSignatureProfile.VerifyRule rule, PublicKey classicPublic, PublicKey pqcPublic) Creates a hybrid verification trailer for the common case where both specs arenull.- Parameters:
classicSigId- classic signature algorithm idpqcSigId- post-quantum signature algorithm idrule- aggregation ruleclassicPublic- classic public keypqcPublic- PQC public key- Returns:
- builder ready to be added to a pipeline
- Throws:
NullPointerException- if any required argument isnullIllegalStateException- if the hybrid context cannot be created- Since:
- 1.0
-
sign
public SignatureTrailerDataContentBuilder sign(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule rule, PrivateKey classicPrivate, PrivateKey pqcPrivate, int maxBodyBytes) Creates a hybrid signing trailer with optional specs and explicitmaxBodyBytes.- Parameters:
classicSigId- classic signature algorithm idpqcSigId- post-quantum signature algorithm idclassicSpec- optional classic spec (may benull)pqcSpec- optional PQC spec (may benull)rule- aggregation ruleclassicPrivate- classic private keypqcPrivate- PQC private keymaxBodyBytes- maximum body size accepted by the hybrid context; must be at least 1- Returns:
- builder ready to be added to a pipeline
- Throws:
NullPointerException- if any required argument isnullIllegalArgumentException- ifmaxBodyBytes < 1IllegalStateException- if the hybrid context cannot be created- Since:
- 1.0
-
verify
public SignatureTrailerDataContentBuilder verify(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule rule, PublicKey classicPublic, PublicKey pqcPublic, int maxBodyBytes) Creates a hybrid verification trailer with optional specs and explicitmaxBodyBytes.- Parameters:
classicSigId- classic signature algorithm idpqcSigId- post-quantum signature algorithm idclassicSpec- optional classic spec (may benull)pqcSpec- optional PQC spec (may benull)rule- aggregation ruleclassicPublic- classic public keypqcPublic- PQC public keymaxBodyBytes- maximum body size accepted by the hybrid context; must be at least 1- Returns:
- builder ready to be added to a pipeline
- Throws:
NullPointerException- if any required argument isnullIllegalArgumentException- ifmaxBodyBytes < 1IllegalStateException- if the hybrid context cannot be created- Since:
- 1.0
-