public abstract class CipherSuitePredicate extends Object
Modifier and Type | Method and Description |
---|---|
static CipherSuitePredicate |
matchAll(CipherSuitePredicate... predicates)
Match all of the given predicates.
|
static CipherSuitePredicate |
matchAnonDH()
Match all anonymous ciphers which use Diffie-Hellman key exchange.
|
static CipherSuitePredicate |
matchAny(CipherSuitePredicate... predicates)
Match any of the given predicates.
|
static CipherSuitePredicate |
matchAuthentication(Authentication... authentications)
Return a predicate which matches any of the given authentication schemes.
|
static CipherSuitePredicate |
matchAuthentication(Authentication authentication)
Return a predicate which matches the given authentication scheme.
|
static CipherSuitePredicate |
matchAuthentication(EnumSet<Authentication> authentications)
Return a predicate which matches any of the given authentication schemes.
|
static CipherSuitePredicate |
matchDefaultDeletes()
Return a predicate which matches all cipher suites that would be fully deleted in the default selector
configuration.
|
static CipherSuitePredicate |
matchDigest(Digest... digests)
Return a predicate which matches any of the given digest schemes.
|
static CipherSuitePredicate |
matchDigest(Digest digest)
Return a predicate which matches the given digest scheme.
|
static CipherSuitePredicate |
matchDigest(EnumSet<Digest> digests)
Return a predicate which matches any of the given digest schemes.
|
static CipherSuitePredicate |
matchEncryption(Encryption... encryptions)
Return a predicate which matches any of the given encryption schemes.
|
static CipherSuitePredicate |
matchEncryption(Encryption encryption)
Return a predicate which matches the given encryption scheme.
|
static CipherSuitePredicate |
matchEncryption(EnumSet<Encryption> encryptions)
Return a predicate which matches any of the given encryption schemes.
|
static CipherSuitePredicate |
matchExport()
Return a predicate which matches all exportable cipher suites.
|
static CipherSuitePredicate |
matchFalse()
Match no possible cipher suites.
|
static CipherSuitePredicate |
matchFips()
Return a predicate which matches all FIPS cipher suites.
|
static CipherSuitePredicate |
matchKeyAgreement(KeyAgreement keyAgreement)
Return a predicate which matches the given key exchange scheme.
|
static CipherSuitePredicate |
matchKeyExchange(EnumSet<KeyAgreement> keyAgreements)
Return a predicate which matches any of the given key exchange schemes.
|
static CipherSuitePredicate |
matchKeyExchange(KeyAgreement... keyAgreements)
Return a predicate which matches any of the given key exchange schemes.
|
static CipherSuitePredicate |
matchLevel(EnumSet<SecurityLevel> levels)
Return a predicate which matches any of the given security levels.
|
static CipherSuitePredicate |
matchLevel(SecurityLevel... levels)
Return a predicate which matches any of the given security levels.
|
static CipherSuitePredicate |
matchLevel(SecurityLevel level)
Return a predicate which matches the given security level.
|
static CipherSuitePredicate |
matchLevelLessThan(SecurityLevel level)
Return a predicate which matches all security levels less than the given level.
|
static CipherSuitePredicate |
matchName(String name)
Return a predicate which matches a cipher suite with the given name.
|
static CipherSuitePredicate |
matchNonExport()
Return a predicate which matches all non-exportable cipher suites.
|
static CipherSuitePredicate |
matchNonFips()
Return a predicate which matches all non-FIPS cipher suites.
|
static CipherSuitePredicate |
matchNot(CipherSuitePredicate predicate)
Invert the given predicate.
|
static CipherSuitePredicate |
matchOpenSslAll()
Match all cipher suites except for anonymous and encryptionless suites, which must be explicitly enabled.
|
static CipherSuitePredicate |
matchOpenSslComplementOfAll()
Match all cipher suites included by
matchOpenSslAll() but are disabled by default (generally,
anonymous Diffie-Hellman suites including elliptic curve suites). |
static CipherSuitePredicate |
matchOpenSslComplementOfDefault()
Match all of the cipher suites which are added by OpenSSL when using the special
COMPLEMENTOFDEFAULT
rule. |
static CipherSuitePredicate |
matchOpenSslDefaultDeletes()
Match all of the cipher suites which are automatically deleted by OpenSSL when using the special
DEFAULT
rule. |
static CipherSuitePredicate |
matchProtocol(EnumSet<Protocol> protocols)
Return a predicate which matches any of the given protocols.
|
static CipherSuitePredicate |
matchProtocol(Protocol... protocols)
Return a predicate which matches any of the given protocols.
|
static CipherSuitePredicate |
matchProtocol(Protocol protocol)
Return a predicate which matches the given protocol.
|
static CipherSuitePredicate |
matchTrue()
Match all possible cipher suites.
|
String |
toString()
Get the string representation of this predicate.
|
public static CipherSuitePredicate matchTrue()
true
predicatepublic static CipherSuitePredicate matchFalse()
false
predicatepublic static CipherSuitePredicate matchAll(CipherSuitePredicate... predicates)
predicates
- the predicatestrue
when all nested predicates are true
public static CipherSuitePredicate matchAny(CipherSuitePredicate... predicates)
predicates
- the predicatestrue
when any nested predicate is true
public static CipherSuitePredicate matchNot(CipherSuitePredicate predicate)
predicate
- the predicatetrue
when the nested predicate is false
, and vice-versapublic static CipherSuitePredicate matchEncryption(Encryption encryption)
encryption
- the encryption schemepublic static CipherSuitePredicate matchEncryption(Encryption... encryptions)
encryptions
- the encryption schemespublic static CipherSuitePredicate matchEncryption(EnumSet<Encryption> encryptions)
encryptions
- the encryption schemespublic static CipherSuitePredicate matchAuthentication(Authentication authentication)
authentication
- the authentication schemepublic static CipherSuitePredicate matchAuthentication(Authentication... authentications)
authentications
- the authentication schemespublic static CipherSuitePredicate matchAuthentication(EnumSet<Authentication> authentications)
authentications
- the authentication schemespublic static CipherSuitePredicate matchKeyAgreement(KeyAgreement keyAgreement)
keyAgreement
- the key exchange schemepublic static CipherSuitePredicate matchKeyExchange(KeyAgreement... keyAgreements)
keyAgreements
- the key exchange schemespublic static CipherSuitePredicate matchKeyExchange(EnumSet<KeyAgreement> keyAgreements)
keyAgreements
- the key exchange schemespublic static CipherSuitePredicate matchDigest(Digest digest)
digest
- the digest schemepublic static CipherSuitePredicate matchDigest(Digest... digests)
digests
- the digest schemespublic static CipherSuitePredicate matchDigest(EnumSet<Digest> digests)
digests
- the digest schemespublic static CipherSuitePredicate matchProtocol(Protocol protocol)
protocol
- the protocolpublic static CipherSuitePredicate matchProtocol(Protocol... protocols)
protocols
- the protocolspublic static CipherSuitePredicate matchProtocol(EnumSet<Protocol> protocols)
protocols
- the protocolspublic static CipherSuitePredicate matchLevel(SecurityLevel level)
level
- the security levelpublic static CipherSuitePredicate matchLevel(SecurityLevel... levels)
levels
- the security levelspublic static CipherSuitePredicate matchLevel(EnumSet<SecurityLevel> levels)
levels
- the security levelspublic static CipherSuitePredicate matchLevelLessThan(SecurityLevel level)
level
- the security level to compare againstpublic static CipherSuitePredicate matchFips()
public static CipherSuitePredicate matchNonFips()
public static CipherSuitePredicate matchExport()
public static CipherSuitePredicate matchNonExport()
public static CipherSuitePredicate matchName(String name)
public static CipherSuitePredicate matchDefaultDeletes()
public static CipherSuitePredicate matchAnonDH()
public static CipherSuitePredicate matchOpenSslAll()
public static CipherSuitePredicate matchOpenSslComplementOfAll()
matchOpenSslAll()
but are disabled by default (generally,
anonymous Diffie-Hellman suites including elliptic curve suites).public static CipherSuitePredicate matchOpenSslDefaultDeletes()
DEFAULT
rule.public static CipherSuitePredicate matchOpenSslComplementOfDefault()
COMPLEMENTOFDEFAULT
rule.Copyright © 2017 JBoss by Red Hat. All rights reserved.