Beispiel #1
0
 protected override ITokenSigner GetTokenSigner(IPublicKeyDataProvider p)
 {
     return(EcDsaTokenSignerFactory.Create(
                p,
                EcDsaTokenSignerFactory.Curve.P521
                ));
 }
        static TestUtilities()
        {
#pragma warning disable 618
            IPublicKeyDataProvider publicKeyDataProvider = new InMemoryPublicKeyDataProvider();
#pragma warning restore 618

            m_signer = EcDsaTokenSignerFactory
                       .Create(publicKeyDataProvider, EcDsaTokenSignerFactory.Curve.P256);

            IAccessTokenValidator accessTokenValidator = AccessTokenValidatorFactory
                                                         .CreateLocalValidator(publicKeyDataProvider);

            RequestAuthenticator = RequestAuthenticatorFactory.Create(accessTokenValidator);
        }