Amazon.SecurityToken.SAML.StoredProfileSAMLCredentials.Validate C# (CSharp) Method

Validate() protected method

If non-default credentials are to be used for authentication, validates that the authentication required callback has been populated.
protected Validate ( ) : void
return 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.");
        }