Beispiel #1
0
 public static KeyCredential ToGraphKeyCredential(this PSADKeyCredential PSKeyCredential)
 {
     return(new KeyCredential
     {
         StartDate = PSKeyCredential.StartDate,
         EndDate = PSKeyCredential.EndDate,
         KeyId = PSKeyCredential.KeyId,
         Type = PSKeyCredential.Type,
         Usage = PSKeyCredential.Usage,
         Value = PSKeyCredential.Value
     });
 }
Beispiel #2
0
 public static KeyCredential ToGraphKeyCredential(this PSADKeyCredential PSKeyCredential)
 {
     return(new KeyCredential
     {
         StartDate = PSKeyCredential.StartDate,
         EndDate = PSKeyCredential.EndDate,
         KeyId = PSKeyCredential.KeyId.ToString(),
         Value = PSKeyCredential.CertValue,
         Type = "AsymmetricX509Cert",
         Usage = "Verify"
     });
 }