Class AbstractTlsCrypto
java.lang.Object
org.bouncycastle.tls.crypto.impl.AbstractTlsCrypto
- All Implemented Interfaces:
TlsCrypto
- Direct Known Subclasses:
BcTlsCrypto, JcaTlsCrypto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadoptSecret(TlsSecret secret) Adopt the passed in secret, creating a new copy of it.booleanhasCertificateType(short certificateType) Return true if this TlsCrypto can support the passed in certificate type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TlsCrypto
createCertificate, createCertificate, createCipher, createDHDomain, createECDomain, createHash, createHMAC, createHMACForHash, createHybridSecret, createKemDomain, createNonceGenerator, createSecret, createSRP6Client, createSRP6Server, createSRP6VerifierGenerator, generateRSAPreMasterSecret, getSecureRandom, hasAnyStreamVerifiers, hasAnyStreamVerifiersLegacy, hasCryptoHashAlgorithm, hasCryptoSignatureAlgorithm, hasDHAgreement, hasECDHAgreement, hasEncryptionAlgorithm, hasHKDFAlgorithm, hasKemAgreement, hasMacAlgorithm, hasNamedGroup, hasRSAEncryption, hasSignatureAlgorithm, hasSignatureAndHashAlgorithm, hasSignatureScheme, hasSRPAuthentication, hkdfInit
-
Constructor Details
-
AbstractTlsCrypto
public AbstractTlsCrypto()
-
-
Method Details
-
adoptSecret
Description copied from interface:TlsCryptoAdopt the passed in secret, creating a new copy of it.- Specified by:
adoptSecretin interfaceTlsCrypto- Parameters:
secret- the secret to make a copy of.- Returns:
- a TlsSecret based on the original secret.
-
hasCertificateType
public boolean hasCertificateType(short certificateType) Description copied from interface:TlsCryptoReturn true if this TlsCrypto can support the passed in certificate type.- Specified by:
hasCertificateTypein interfaceTlsCrypto- Parameters:
certificateType- the certificate type of interest.- Returns:
- true if certificateType is supported, false otherwise.
-