keycloak-service
公開メンバ関数 | 関数 | 変数 | 全メンバ一覧
org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder クラス
org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder 連携図
Collaboration graph

公開メンバ関数

KeyUsageValidationBuilder enableDigitalSignatureBit ()
 
KeyUsageValidationBuilder enablecRLSignBit ()
 
KeyUsageValidationBuilder enableDataEncriphermentBit ()
 
KeyUsageValidationBuilder enableDecipherOnlyBit ()
 
KeyUsageValidationBuilder enableEnciphermentOnlyBit ()
 
KeyUsageValidationBuilder enableKeyAgreementBit ()
 
KeyUsageValidationBuilder enableKeyEnciphermentBit ()
 
KeyUsageValidationBuilder enableKeyCertSign ()
 
KeyUsageValidationBuilder enableNonRepudiationBit ()
 
CertificateValidatorBuilder back ()
 

関数

 KeyUsageValidationBuilder (CertificateValidatorBuilder parent)
 
CertificateValidatorBuilder parse (String keyUsage)
 

変数

CertificateValidatorBuilder _parent
 

詳解

構築子と解体子

◆ KeyUsageValidationBuilder()

org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.KeyUsageValidationBuilder ( CertificateValidatorBuilder  parent)
inlinepackage
541  {
542  _parent = parent;
543  }

関数詳解

◆ back()

CertificateValidatorBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.back ( )
inline
582  {
583  return _parent;
584  }

◆ enablecRLSignBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enablecRLSignBit ( )
inline
549  {
550  _keyUsageBits |= 1 << KeyUsageBits.CRLSIGN.getInt();
551  return this;
552  }

◆ enableDataEncriphermentBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableDataEncriphermentBit ( )
inline
553  {
554  _keyUsageBits |= 1 << KeyUsageBits.DATA_ENCIPHERMENT.getInt();
555  return this;
556  }

◆ enableDecipherOnlyBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableDecipherOnlyBit ( )
inline
557  {
558  _keyUsageBits |= 1 << KeyUsageBits.DECIPHER_ONLY.getInt();
559  return this;
560  }

◆ enableDigitalSignatureBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableDigitalSignatureBit ( )
inline
545  {
546  _keyUsageBits |= 1 << KeyUsageBits.DIGITAL_SIGNATURE.getInt();
547  return this;
548  }

◆ enableEnciphermentOnlyBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableEnciphermentOnlyBit ( )
inline
561  {
562  _keyUsageBits |= 1 << KeyUsageBits.ENCIPHERMENT_ONLY.getInt();
563  return this;
564  }

◆ enableKeyAgreementBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableKeyAgreementBit ( )
inline
565  {
566  _keyUsageBits |= 1 << KeyUsageBits.KEY_AGREEMENT.getInt();
567  return this;
568  }

◆ enableKeyCertSign()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableKeyCertSign ( )
inline
573  {
574  _keyUsageBits |= 1 << KeyUsageBits.KEYCERTSIGN.getInt();
575  return this;
576  }

◆ enableKeyEnciphermentBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableKeyEnciphermentBit ( )
inline
569  {
570  _keyUsageBits |= 1 << KeyUsageBits.KEY_ENCIPHERMENT.getInt();
571  return this;
572  }

◆ enableNonRepudiationBit()

KeyUsageValidationBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.enableNonRepudiationBit ( )
inline
577  {
578  _keyUsageBits |= 1 << KeyUsageBits.NON_REPUDIATION.getInt();
579  return this;
580  }

◆ parse()

CertificateValidatorBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder.parse ( String  keyUsage)
inlinepackage
586  {
587  if (keyUsage == null || keyUsage.trim().length() == 0)
588  return _parent;
589 
590  String[] strs = keyUsage.split("[,]");
591 
592  for (String s : strs) {
593  try {
594  KeyUsageBits bit = KeyUsageBits.parse(s.trim());
595  switch(bit) {
596  case CRLSIGN: enablecRLSignBit(); break;
597  case DATA_ENCIPHERMENT: enableDataEncriphermentBit(); break;
598  case DECIPHER_ONLY: enableDecipherOnlyBit(); break;
599  case DIGITAL_SIGNATURE: enableDigitalSignatureBit(); break;
600  case ENCIPHERMENT_ONLY: enableEnciphermentOnlyBit(); break;
601  case KEY_AGREEMENT: enableKeyAgreementBit(); break;
602  case KEY_ENCIPHERMENT: enableKeyEnciphermentBit(); break;
603  case KEYCERTSIGN: enableKeyCertSign(); break;
604  case NON_REPUDIATION: enableNonRepudiationBit(); break;
605  }
606  }
607  catch(IllegalArgumentException e) {
608  logger.warnf("Unable to parse key usage bit: \"%s\"", s);
609  }
610  catch(IndexOutOfBoundsException e) {
611  logger.warnf("Invalid key usage bit: \"%s\"", s);
612  }
613  }
614 
615  return _parent;
616  }
CertificateValidatorBuilder parse(String keyUsage)
Definition: CertificateValidator.java:586
static final ServicesLogger logger
Definition: CertificateValidator.java:63
KeyUsageValidationBuilder keyUsage()
Definition: CertificateValidator.java:685

メンバ詳解

◆ _parent

CertificateValidatorBuilder org.keycloak.authentication.authenticators.x509.CertificateValidator.CertificateValidatorBuilder.KeyUsageValidationBuilder._parent
package

このクラス詳解は次のファイルから抽出されました: