Package org.bouncycastle.tls
Class ProtocolVersion
java.lang.Object
org.bouncycastle.tls.ProtocolVersion
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ProtocolVersion
static final ProtocolVersion
static final ProtocolVersion
static final ProtocolVersion
static final ProtocolVersion
static final ProtocolVersion
static final ProtocolVersion
static final ProtocolVersion
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(ProtocolVersion[] versions, ProtocolVersion version) downTo
(ProtocolVersion min) boolean
boolean
equals
(ProtocolVersion other) static ProtocolVersion
get
(int major, int minor) static ProtocolVersion
getEarliestDTLS
(ProtocolVersion[] versions) static ProtocolVersion
getEarliestTLS
(ProtocolVersion[] versions) int
static ProtocolVersion
getLatestDTLS
(ProtocolVersion[] versions) static ProtocolVersion
getLatestTLS
(ProtocolVersion[] versions) int
int
getName()
int
hashCode()
boolean
isDTLS()
boolean
isEarlierVersionOf
(ProtocolVersion version) boolean
isEqualOrEarlierVersionOf
(ProtocolVersion version) boolean
isEqualOrLaterVersionOf
(ProtocolVersion version) boolean
isLaterVersionOf
(ProtocolVersion version) boolean
isSSL()
boolean
isTLS()
only()
toString()
-
Field Details
-
SSLv3
-
TLSv10
-
TLSv11
-
TLSv12
-
TLSv13
-
DTLSv10
-
DTLSv12
-
DTLSv13
-
-
Method Details
-
contains
-
getEarliestDTLS
-
getEarliestTLS
-
getLatestDTLS
-
getLatestTLS
-
downTo
-
getFullVersion
public int getFullVersion() -
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getName
-
isDTLS
public boolean isDTLS() -
isSSL
public boolean isSSL() -
isTLS
public boolean isTLS() -
getEquivalentTLSVersion
-
getNextVersion
-
getPreviousVersion
-
isEarlierVersionOf
-
isEqualOrEarlierVersionOf
-
isEqualOrLaterVersionOf
-
isLaterVersionOf
-
equals
-
equals
-
hashCode
public int hashCode() -
get
-
only
-
toString
-