Package org.bouncycastle.tls
Class SignatureAndHashAlgorithm
java.lang.Object
org.bouncycastle.tls.SignatureAndHashAlgorithm
RFC 5246 7.4.1.4.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
protected final short
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
static final SignatureAndHashAlgorithm
protected final short
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisSignatureAndHashAlgorithm
to anOutputStream
.boolean
short
getHash()
static SignatureAndHashAlgorithm
getInstance
(short hashAlgorithm, short signatureAlgorithm) short
int
hashCode()
static SignatureAndHashAlgorithm
parse
(InputStream input) Parse aSignatureAndHashAlgorithm
from anInputStream
.toString()
-
Field Details
-
ecdsa_brainpoolP256r1tls13_sha256
-
ecdsa_brainpoolP384r1tls13_sha384
-
ecdsa_brainpoolP512r1tls13_sha512
-
ed25519
-
ed448
-
gostr34102012_256
-
gostr34102012_512
-
rsa_pss_rsae_sha256
-
rsa_pss_rsae_sha384
-
rsa_pss_rsae_sha512
-
rsa_pss_pss_sha256
-
rsa_pss_pss_sha384
-
rsa_pss_pss_sha512
-
hash
protected final short hash -
signature
protected final short signature
-
-
Constructor Details
-
SignatureAndHashAlgorithm
public SignatureAndHashAlgorithm(short hash, short signature) - Parameters:
hash
-HashAlgorithm
signature
-SignatureAlgorithm
-
-
Method Details
-
getInstance
-
getHash
public short getHash()- Returns:
HashAlgorithm
-
getSignature
public short getSignature()- Returns:
SignatureAlgorithm
-
encode
Encode thisSignatureAndHashAlgorithm
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aSignatureAndHashAlgorithm
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
SignatureAndHashAlgorithm
object. - Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-