Class CryptoSignatureSpec.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CryptoSignatureSpec.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CryptoSignatureSpec instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
signatureName
public String
customDigestName
public CryptoSignatureParameterSpec
params
public CryptoSignatureParameterSpec.Builder
paramsBuilder
-
Method Summary
Modifier and Type Method Description String
getSignatureName()
Gets the value of the 'signatureName' field. CryptoSignatureSpec.Builder
setSignatureName(String value)
Sets the value of the 'signatureName' field. String
getCustomDigestName()
Gets the value of the 'customDigestName' field. CryptoSignatureSpec.Builder
setCustomDigestName(String value)
Sets the value of the 'customDigestName' field. CryptoSignatureParameterSpec
getParams()
Gets the value of the 'params' field. CryptoSignatureSpec.Builder
setParams(CryptoSignatureParameterSpec value)
Sets the value of the 'params' field. CryptoSignatureParameterSpec.Builder
getParamsBuilder()
Gets the Builder instance for the 'params' field and creates one if it doesn't exist yet. CryptoSignatureSpec.Builder
setParamsBuilder(CryptoSignatureParameterSpec.Builder value)
Sets the Builder instance for the 'params' field An optional signature parameters. boolean
hasSignatureName()
Checks whether the 'signatureName' field has been set. CryptoSignatureSpec.Builder
clearSignatureName()
Clears the value of the 'signatureName' field. boolean
hasCustomDigestName()
Checks whether the 'customDigestName' field has been set. CryptoSignatureSpec.Builder
clearCustomDigestName()
Clears the value of the 'customDigestName' field. boolean
hasParams()
Checks whether the 'params' field has been set. boolean
hasParamsBuilder()
Checks whether the 'params' field has an active Builder instance An optional signature parameters. CryptoSignatureSpec.Builder
clearParams()
Clears the value of the 'params' field. CryptoSignatureSpec
build()
-
-
Method Detail
-
getSignatureName
String getSignatureName()
Gets the value of the 'signatureName' field. A signature-scheme name as required to create [Signature] objects (e.g. "SHA256withECDSA")
-
setSignatureName
CryptoSignatureSpec.Builder setSignatureName(String value)
Sets the value of the 'signatureName' field. A signature-scheme name as required to create [Signature] objects (e.g. "SHA256withECDSA")
- Parameters:
value
- The value of 'signatureName'.
-
getCustomDigestName
String getCustomDigestName()
Gets the value of the 'customDigestName' field. An optional digest algorithm name, set to non null value if the hash should be precalculated before passing to the provider (e.g. "SHA512"), note that the signatureName should not contain the digest (e.g. "NONEwithECDSA").
-
setCustomDigestName
CryptoSignatureSpec.Builder setCustomDigestName(String value)
Sets the value of the 'customDigestName' field. An optional digest algorithm name, set to non null value if the hash should be precalculated before passing to the provider (e.g. "SHA512"), note that the signatureName should not contain the digest (e.g. "NONEwithECDSA").
- Parameters:
value
- The value of 'customDigestName'.
-
getParams
CryptoSignatureParameterSpec getParams()
Gets the value of the 'params' field. An optional signature parameters.
-
setParams
CryptoSignatureSpec.Builder setParams(CryptoSignatureParameterSpec value)
Sets the value of the 'params' field. An optional signature parameters.
- Parameters:
value
- The value of 'params'.
-
getParamsBuilder
CryptoSignatureParameterSpec.Builder getParamsBuilder()
Gets the Builder instance for the 'params' field and creates one if it doesn't exist yet. An optional signature parameters.
-
setParamsBuilder
CryptoSignatureSpec.Builder setParamsBuilder(CryptoSignatureParameterSpec.Builder value)
Sets the Builder instance for the 'params' field An optional signature parameters.
- Parameters:
value
- The builder instance that must be set.
-
hasSignatureName
boolean hasSignatureName()
Checks whether the 'signatureName' field has been set. A signature-scheme name as required to create [Signature] objects (e.g. "SHA256withECDSA")
-
clearSignatureName
CryptoSignatureSpec.Builder clearSignatureName()
Clears the value of the 'signatureName' field. A signature-scheme name as required to create [Signature] objects (e.g. "SHA256withECDSA")
-
hasCustomDigestName
boolean hasCustomDigestName()
Checks whether the 'customDigestName' field has been set. An optional digest algorithm name, set to non null value if the hash should be precalculated before passing to the provider (e.g. "SHA512"), note that the signatureName should not contain the digest (e.g. "NONEwithECDSA").
-
clearCustomDigestName
CryptoSignatureSpec.Builder clearCustomDigestName()
Clears the value of the 'customDigestName' field. An optional digest algorithm name, set to non null value if the hash should be precalculated before passing to the provider (e.g. "SHA512"), note that the signatureName should not contain the digest (e.g. "NONEwithECDSA").
-
hasParams
boolean hasParams()
Checks whether the 'params' field has been set. An optional signature parameters.
-
hasParamsBuilder
boolean hasParamsBuilder()
Checks whether the 'params' field has an active Builder instance An optional signature parameters.
-
clearParams
CryptoSignatureSpec.Builder clearParams()
Clears the value of the 'params' field. An optional signature parameters.
-
build
CryptoSignatureSpec build()
-
-
-
-