public AuthorizationData(Interop.AuthorizationDataType adtype) { ad_type = adtype; if (adtype == Interop.AuthorizationDataType.KERB_AUTH_DATA_TOKEN_RESTRICTIONS) ad_data = new KERB_AD_RESTRICTION_ENTRY(); else if (adtype == Interop.AuthorizationDataType.KERB_LOCAL) { // random KERB-LOCAL for now var rand = new Random(); byte[] randomBytes = new byte[16]; rand.NextBytes(randomBytes); ad_data = randomBytes; } }
public AuthorizationData(Interop.AuthorizationDataType adtype, byte[] data) { ad_type = adtype; ad_data = data; }
public AuthorizationData(Interop.AuthorizationDataType adtype) : this(adtype, null) { }