Amazon.SecurityToken.SAML.StoredProfileSAMLCredentials.Validate C# (CSharp) Méthode

Validate() protected méthode

If non-default credentials are to be used for authentication, validates that the authentication required callback has been populated.
protected Validate ( ) : void
Résultat void
        protected override void Validate()
        {
            if (!ProfileData.UseDefaultUserIdentity && RequestUserCredentialCallback == null)
                throw new CredentialCallbackRequiredException("RequestUserCredentialCallback must be set for profiles that do not use the default user identity for authentication.");
        }