예제 #1
0
 /// <summary>
 /// Constructor that takes the subject key for each of the OCES certificate types.
 /// </summary>
 /// <param name="personalCertificateSubjectKey"></param>
 /// <param name="employeeCertificateSubjectKey"></param>
 /// <param name="organizationCertificateSubjectKey"></param>
 /// <param name="functionCertificateSubjectKey"></param>
 public OcesX509CertificateConfig(OcesCertificateSubjectKey personalCertificateSubjectKey,
                                  OcesCertificateSubjectKey employeeCertificateSubjectKey,
                                  OcesCertificateSubjectKey organizationCertificateSubjectKey,
                                  OcesCertificateSubjectKey functionCertificateSubjectKey)
 {
     if (personalCertificateSubjectKey == null)
     {
         throw new NullArgumentException("personalCertificateSubjectKey");
     }
     if (employeeCertificateSubjectKey == null)
     {
         throw new NullArgumentException("employeeCertificateSubjectKey");
     }
     if (organizationCertificateSubjectKey == null)
     {
         throw new NullArgumentException("organizationCertificateSubjectKey");
     }
     if (functionCertificateSubjectKey == null)
     {
         throw new NullArgumentException("functionCertificateSubjectKey");
     }
     _personalCertificateSubjectKey     = personalCertificateSubjectKey;
     _employeeCertificateSubjectKey     = employeeCertificateSubjectKey;
     _organizationCertificateSubjectKey = organizationCertificateSubjectKey;
     _functionCertificateSubjectKey     = functionCertificateSubjectKey;
 }
예제 #2
0
 /// <summary>
 /// Default constructor used by XMLSerialization. It should not be used.
 /// </summary>
 public OcesX509CertificateConfig()
 {
     _personalCertificateSubjectKey     = new OcesCertificateSubjectKey();
     _employeeCertificateSubjectKey     = new OcesCertificateSubjectKey();
     _organizationCertificateSubjectKey = new OcesCertificateSubjectKey();
     _functionCertificateSubjectKey     = new OcesCertificateSubjectKey();
 }