Ejemplo n.º 1
0
        private static DGWSCard11Type GetIDCardVersion11()
        {
            DGWSCard11Type card = new DGWSCard11Type();

            card.Issuer = "SEI Client";

            card.NameID       = "2207712801";
            card.NameIDFormat = FormatIds.cprnumber;

            card.CardLifeTime = CardLifeTimeType.Hours24;

            card.IDCardType              = CardType.user;
            card.AuthenticationLevel     = 3;
            card.CivilRegistrationNumber = "2207712801";
            card.GivenName         = "Thomas";
            card.SurName           = "Neumann";
            card.EmailAddress      = "*****@*****.**";
            card.Role              = "SEI User";
            card.Occupation        = "?";
            card.AuthorizationCode = "19901";

            card.ITSystemName         = "SEI Client";
            card.OrganisationID       = "12070918";
            card.OrganisationIDFormat = FormatIds.cvrnumber;
            card.OrganisationName     = "SST";

//			card.AuthenticatingAuthority = "http://sosi.dk";

            return(card);
        }
Ejemplo n.º 2
0
        private DGWSCard10Type GetIDCard(String version)
        {
            DGWSCard11Type card = new DGWSCard11Type();

            // Issuer
            card.Issuer = "SEI Client";

            // Subject
            card.NameID       = "1111111118";
            card.NameIDFormat = FormatIds.cprnumber;

            // Conditions
            card.CardLifeTime = CardLifeTimeType.Hours8;

            // Authentication (STS)

            // Attributes
            card.IDCardType              = CardType.user;
            card.AuthenticationLevel     = 3;
            card.CivilRegistrationNumber = "1111111118";
            card.GivenName    = "Bent";
            card.SurName      = "Hansen";
            card.EmailAddress = "*****@*****.**";
            card.Role         = "SEI User";
            card.Occupation   = "?";

            // System log
            card.ITSystemName         = "SEI Client";
            card.OrganisationID       = "12070918";
            card.OrganisationIDFormat = FormatIds.cvrnumber;
            card.OrganisationName     = "SST";

            return(card);
        }