590 String[] strs =
keyUsage.split(
"[,]");
592 for (String s : strs) {
594 KeyUsageBits bit = KeyUsageBits.
parse(s.trim());
607 catch(IllegalArgumentException e) {
608 logger.warnf(
"Unable to parse key usage bit: \"%s\"", s);
610 catch(IndexOutOfBoundsException e) {
611 logger.warnf(
"Invalid key usage bit: \"%s\"", s);
CertificateValidatorBuilder parse(String keyUsage)
Definition: CertificateValidator.java:586
KeyUsageValidationBuilder enableKeyEnciphermentBit()
Definition: CertificateValidator.java:569
KeyUsageValidationBuilder enableKeyCertSign()
Definition: CertificateValidator.java:573
KeyUsageValidationBuilder enableEnciphermentOnlyBit()
Definition: CertificateValidator.java:561
KeyUsageValidationBuilder enableDigitalSignatureBit()
Definition: CertificateValidator.java:545
static final ServicesLogger logger
Definition: CertificateValidator.java:63
KeyUsageValidationBuilder keyUsage()
Definition: CertificateValidator.java:685
CertificateValidatorBuilder _parent
Definition: CertificateValidator.java:540
KeyUsageValidationBuilder enablecRLSignBit()
Definition: CertificateValidator.java:549
KeyUsageValidationBuilder enableDataEncriphermentBit()
Definition: CertificateValidator.java:553
KeyUsageValidationBuilder enableNonRepudiationBit()
Definition: CertificateValidator.java:577
KeyUsageValidationBuilder enableDecipherOnlyBit()
Definition: CertificateValidator.java:557
KeyUsageValidationBuilder enableKeyAgreementBit()
Definition: CertificateValidator.java:565