public class SignatureScheme
This class is used to define a digital signature scheme.
Constructor and Description |
---|
SignatureScheme(int schemeNumberID,
java.lang.String schemeCodeName,
NonExistentClass signatureOID,
java.util.List<? extends error.NonExistentClass> alternativeOIDs,
java.lang.String providerName,
java.lang.String algorithmName,
java.lang.String signatureName,
java.security.spec.AlgorithmParameterSpec algSpec,
java.lang.Integer keySize,
java.lang.String desc)
This class is used to define a digital signature scheme.
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
unique number ID for better efficiency on-wire serialisation.
|
java.lang.String |
component10()
a human-readable description for this scheme.
|
java.lang.String |
component2()
unique code name for this signature scheme
|
NonExistentClass |
component3()
ASN.1 algorithm identifier of the signature algorithm
|
java.util.List<NonExistentClass> |
component4()
ASN.1 algorithm identifiers for keys of the signature,
|
java.lang.String |
component5()
the provider
|
java.lang.String |
component6()
which signature algorithm is used
|
java.lang.String |
component7()
a signature-scheme name as required to create
|
java.security.spec.AlgorithmParameterSpec |
component8()
parameter specs for the underlying algorithm.
|
java.lang.Integer |
component9()
the private key size
|
SignatureScheme |
copy(int schemeNumberID,
java.lang.String schemeCodeName,
NonExistentClass signatureOID,
java.util.List<? extends error.NonExistentClass> alternativeOIDs,
java.lang.String providerName,
java.lang.String algorithmName,
java.lang.String signatureName,
java.security.spec.AlgorithmParameterSpec algSpec,
java.lang.Integer keySize,
java.lang.String desc)
This class is used to define a digital signature scheme.
|
boolean |
equals(java.lang.Object p) |
java.security.spec.AlgorithmParameterSpec |
getAlgSpec()
parameter specs for the underlying algorithm.
|
java.lang.String |
getAlgorithmName()
which signature algorithm is used
|
java.util.List<NonExistentClass> |
getAlternativeOIDs()
ASN.1 algorithm identifiers for keys of the signature,
|
java.lang.String |
getDesc()
a human-readable description for this scheme.
|
java.lang.Integer |
getKeySize()
the private key size
|
java.lang.String |
getProviderName()
the provider
|
java.lang.String |
getSchemeCodeName()
unique code name for this signature scheme
|
int |
getSchemeNumberID()
unique number ID for better efficiency on-wire serialisation.
|
java.lang.String |
getSignatureName()
a signature-scheme name as required to create
|
NonExistentClass |
getSignatureOID()
ASN.1 algorithm identifier of the signature algorithm
|
int |
hashCode() |
java.lang.String |
toString() |
public SignatureScheme(int schemeNumberID, java.lang.String schemeCodeName, NonExistentClass signatureOID, java.util.List<? extends error.NonExistentClass> alternativeOIDs, java.lang.String providerName, java.lang.String algorithmName, java.lang.String signatureName, java.security.spec.AlgorithmParameterSpec algSpec, java.lang.Integer keySize, java.lang.String desc)
This class is used to define a digital signature scheme.
schemeNumberID
- unique number ID for better efficiency on-wire serialisation.schemeCodeName
- unique code name for this signature scheme (e.g. RSA_SHA256, ECDSA_SECP256K1_SHA256, ECDSA_SECP256R1_SHA256,EDDSA_ED25519_SHA512, SPHINCS-256_SHA512).signatureOID
- ASN.1 algorithm identifier of the signature algorithm (e.g 1.3.101.112 for EdDSA)alternativeOIDs
- ASN.1 algorithm identifiers for keys of the signature, where we want to map multiple keys tothe same signature scheme.providerName
- the provider's name (e.g. "BC").algorithmName
- which signature algorithm is used (e.g. RSA, ECDSA. EdDSA, SPHINCS-256).signatureName
- a signature-scheme name as required to create Signature objects (e.g. "SHA256withECDSA")algSpec
- parameter specs for the underlying algorithm. Note that RSA is defined by the key size rather than algSpec.eg. ECGenParameterSpec("secp256k1").keySize
- the private key size (currently used for RSA only).desc
- a human-readable description for this scheme.schemeNumberID
- unique number ID for better efficiency on-wire serialisation.schemeCodeName
- unique code name for this signature scheme (e.g. RSA_SHA256, ECDSA_SECP256K1_SHA256, ECDSA_SECP256R1_SHA256,
EDDSA_ED25519_SHA512, SPHINCS-256_SHA512).signatureOID
- ASN.1 algorithm identifier of the signature algorithm (e.g 1.3.101.112 for EdDSA)alternativeOIDs
- ASN.1 algorithm identifiers for keys of the signature, where we want to map multiple keys to
the same signature scheme.providerName
- the provider's name (e.g. "BC").algorithmName
- which signature algorithm is used (e.g. RSA, ECDSA. EdDSA, SPHINCS-256).signatureName
- a signature-scheme name as required to create Signature objects (e.g. "SHA256withECDSA")algSpec
- parameter specs for the underlying algorithm. Note that RSA is defined by the key size rather than algSpec.
eg. ECGenParameterSpec("secp256k1").keySize
- the private key size (currently used for RSA only).desc
- a human-readable description for this scheme.public int getSchemeNumberID()
unique number ID for better efficiency on-wire serialisation.
public java.lang.String getSchemeCodeName()
unique code name for this signature scheme
(e.g. RSA_SHA256, ECDSA_SECP256K1_SHA256, ECDSA_SECP256R1_SHA256,EDDSA_ED25519_SHA512, SPHINCS-256_SHA512).
public NonExistentClass getSignatureOID()
ASN.1 algorithm identifier of the signature algorithm
(e.g 1.3.101.112 for EdDSA)
public java.util.List<NonExistentClass> getAlternativeOIDs()
ASN.1 algorithm identifiers for keys of the signature,
where we want to map multiple keys tothe same signature scheme.
public java.lang.String getProviderName()
the provider
's name (e.g. "BC").
public java.lang.String getAlgorithmName()
which signature algorithm is used
(e.g. RSA, ECDSA. EdDSA, SPHINCS-256).
public java.lang.String getSignatureName()
a signature-scheme name as required to create
Signature objects (e.g. "SHA256withECDSA")
public java.security.spec.AlgorithmParameterSpec getAlgSpec()
parameter specs for the underlying algorithm.
Note that RSA is defined by the key size rather than algSpec.eg. ECGenParameterSpec("secp256k1").
public java.lang.Integer getKeySize()
the private key size
(currently used for RSA only).
public java.lang.String getDesc()
a human-readable description for this scheme.
public int component1()
unique number ID for better efficiency on-wire serialisation.
public java.lang.String component2()
unique code name for this signature scheme
(e.g. RSA_SHA256, ECDSA_SECP256K1_SHA256, ECDSA_SECP256R1_SHA256,EDDSA_ED25519_SHA512, SPHINCS-256_SHA512).
public NonExistentClass component3()
ASN.1 algorithm identifier of the signature algorithm
(e.g 1.3.101.112 for EdDSA)
public java.util.List<NonExistentClass> component4()
ASN.1 algorithm identifiers for keys of the signature,
where we want to map multiple keys tothe same signature scheme.
public java.lang.String component5()
the provider
's name (e.g. "BC").
public java.lang.String component6()
which signature algorithm is used
(e.g. RSA, ECDSA. EdDSA, SPHINCS-256).
public java.lang.String component7()
a signature-scheme name as required to create
Signature objects (e.g. "SHA256withECDSA")
public java.security.spec.AlgorithmParameterSpec component8()
parameter specs for the underlying algorithm.
Note that RSA is defined by the key size rather than algSpec.eg. ECGenParameterSpec("secp256k1").
public java.lang.Integer component9()
the private key size
(currently used for RSA only).
public java.lang.String component10()
a human-readable description for this scheme.
public SignatureScheme copy(int schemeNumberID, java.lang.String schemeCodeName, NonExistentClass signatureOID, java.util.List<? extends error.NonExistentClass> alternativeOIDs, java.lang.String providerName, java.lang.String algorithmName, java.lang.String signatureName, java.security.spec.AlgorithmParameterSpec algSpec, java.lang.Integer keySize, java.lang.String desc)
This class is used to define a digital signature scheme.
schemeNumberID
- unique number ID for better efficiency on-wire serialisation.schemeCodeName
- unique code name for this signature scheme (e.g. RSA_SHA256, ECDSA_SECP256K1_SHA256, ECDSA_SECP256R1_SHA256,
EDDSA_ED25519_SHA512, SPHINCS-256_SHA512).signatureOID
- ASN.1 algorithm identifier of the signature algorithm (e.g 1.3.101.112 for EdDSA)alternativeOIDs
- ASN.1 algorithm identifiers for keys of the signature, where we want to map multiple keys to
the same signature scheme.providerName
- the provider's name (e.g. "BC").algorithmName
- which signature algorithm is used (e.g. RSA, ECDSA. EdDSA, SPHINCS-256).signatureName
- a signature-scheme name as required to create Signature objects (e.g. "SHA256withECDSA")algSpec
- parameter specs for the underlying algorithm. Note that RSA is defined by the key size rather than algSpec.
eg. ECGenParameterSpec("secp256k1").keySize
- the private key size (currently used for RSA only).desc
- a human-readable description for this scheme.public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)