예제 #1
0
 public AbstractRequestingAuthenticationDetailsProvider()
 {
     AutoDetectUsingMetadataUrl();
     sessionKeySupplier = new SessionKey();
     federationClient   = new X509FederationClient(
         federationEndpoint,
         tenancyId,
         leafCertificateSupplier,
         sessionKeySupplier,
         intermediateCertificateSuppliers);
 }
 public X509FederationClient(
     string federationEndpoint,
     string tenancyId,
     IX509CertificateSupplier leafCertificateSupplier,
     ISessionKeySupplier sessionKeySupplier,
     HashSet <IX509CertificateSupplier> intermediateCertificateSuppliers)
     : this(
         federationEndpoint,
         tenancyId,
         leafCertificateSupplier,
         sessionKeySupplier,
         intermediateCertificateSuppliers,
         DEFAULT_PURPOSE)
 {
 }
 public X509FederationClient(
     string federationEndpoint,
     string tenancyId,
     IX509CertificateSupplier leafCertificateSupplier,
     ISessionKeySupplier sessionKeySupplier,
     HashSet <IX509CertificateSupplier> intermediateCertificateSuppliers,
     string purpose)
 {
     this.federationEndpoint               = federationEndpoint;
     this.leafCertificateSupplier          = leafCertificateSupplier ?? throw new NullReferenceException();
     this.sessionKeySupplier               = sessionKeySupplier ?? throw new NullReferenceException();
     this.intermediateCertificateSuppliers = intermediateCertificateSuppliers;
     this.tenancyId            = tenancyId ?? throw new NullReferenceException();
     this.securityTokenAdapter = new SecurityTokenAdapter(null);
     this.purpose = purpose ?? throw new NullReferenceException();
 }