IPWorks S/MIME 2020 .NET Edition

Questions / Feedback?

SNNTP Component

Properties   Methods   Events   Configuration Settings   Errors  

The SNNTP Component is used to read, search, and post articles on Usenet news servers.

Syntax

nsoftware.IPWorksSMIME.Snntp

Remarks

The SNNTP Component is the S/MIME enabled equivalent of the IPWorks NNTP component. In addition to standard NNTP functions the SNNTP component can sign, encrypt, decrypt, and verify message signatures. The methods and properties for encrypting, signing, decrypting, and verifying signatures are identical to those provided with the S/MIME component. After setting the certificate properties, and specifying ArticleText, call the Encrypt, Sign or SignAndEncrypt method before posting and the result will be stored in ArticleText. When attempting to verify a signed message or when decrypting a message call the Decrypt, VerifySignature, or DecryptAndVerifySignature methods and the resulting text will be replaced in ArticleText.

The SNNTP Component implements a standard Usenet news reader as specified in RFC 977. It can be used to browse Usenet news groups and read and post articles.

The CurrentGroup property sets the current newsgroup. From then on, news articles from that group can be read by setting the article number in CurrentArticle and then calling the appropriate method. Properties such as ArticleCount, FirstArticle, LastArticle provide information about the current state.

The headers and text of the articles are received respectively through the Header and Transfer events. Additionally, up to MaxLines from the article body are provided in the ArticleText property. The GroupOverview event returns information about a range of articles (OverviewRange) in CurrentGroup, and the GroupList event is used when listing newsgroup names. The PITrail event provides a trace of the interaction with the server.

The component supports posting of articles through the ArticleText and AttachedFile properties. The article text is specified in one or both of the above, and then the PostArticle method is called. Article headers are given in a series of properties like ArticleFrom, ArticleSubject, Organization, etc. that map directly to the USENET article header with the same name.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for further details.

ArticleCountThe estimated number of articles in CurrentGroup .
ArticleDateThe date of the current article.
ArticleFromThe email address of the author (for posting articles).
ArticleHeadersThe full headers of the article as retrieved from the server.
ArticleIdThe message identifier of the current article.
ArticleListCollection of articles collected through GroupOverview or GroupSearch .
ArticleReferencesArticles to which the posted article follows up.
ArticleReplyToThe address to reply to (for posting articles).
ArticleSubjectThe article subject (for posted articles).
ArticleTextThe full text of the article (without the headers).
AttachedFileA file name which the contents of will be appended to the ArticleText when posting articles.
CertificateThe current selected certificate.
CheckDateThe date (format YYMMDD HHMMSS) to check for creation of new groups. If the group was created after the date specified, it is considered new.
CommandUsed to send additional commands directly to the server.
ConnectedShows whether the component is connected.
CurrentArticleThe number or message identifier of the current article.
CurrentGroupThe name of the current group.
EncryptingAlgorithmTextual description of the encrypting algorithm.
FirewallA set of properties related to firewall access.
FirstArticleThe number of the first article in CurrentGroup .
GroupListCollection of newsgroups listed by ListGroups or ListNewGroups .
IdleThe current status of the component.
IncludeCertificateSpecifies whether to include the signer's certificate with the signed message.
IncludeChainSpecifies whether to include the signer's certificate chain with the signed message.
LastArticleThe number of the last article in CurrentGroup .
LastReplyThe last reply from the server.
LocalHostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
MaxLinesThe maximum number of message lines aside from headers to retrieve.
NewsgroupsA comma separated list of newsgroups in which to post the article.
NewsPortThe server port for secure NNTP (default 119).
NewsServerThe name or address of a news server.
OrganizationThe organization of the author (for posting articles).
OtherHeadersAn RFC850 compliant string consisting of extra headers (for posting articles).
OverviewRangeA range for the GroupOverview method (first-last).
ParsedHeadersA collection of headers returned from the last article retrieval.
PasswordA logon password for the NewsServer .
RecipientCertsThe collection of recipient certificates of the message.
SearchHeaderA header for the GroupSearch method.
SearchPatternA search pattern for the GroupSearch method.
SearchRangeA range for the GroupSearch method (first-last).
SignerCertContains the certificate of the message signer.
SigningAlgorithmTextual description of the signature hash algorithm.
SSLAcceptServerCertInstructs the component to unconditionally accept the server certificate that matches the supplied certificate.
SSLCertThe certificate to be used during SSL negotiation.
SSLEnabledWhether TLS/SSL is enabled.
SSLServerCertThe server certificate for the last established connection.
SSLStartModeDetermines how the component starts the SSL negotiation.
TimeoutA timeout for the component.
UserA user identifier to login as in the NewsServer .

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for further details.

AddRecipientCertUsed to add recipient certificates used to encrypt messages.
ConfigSets or retrieves a configuration setting.
ConnectConnects to the news server.
DecryptDecrypts the current Message .
DecryptAndVerifySignatureDecrypts and verifies the signature of the current message.
DisconnectDisconnects from the news server.
DoEventsProcesses events from the internal message queue.
EncryptEncrypts the message.
FetchArticleGet the headers and body of an article specified in CurrentArticle .
FetchArticleBodyGets only the body of an article specified in CurrentArticle .
FetchArticleHeadersGets only the headers of an article specified in CurrentArticle .
GroupOverviewReceives an overview for the articles in range OverviewRange in the CurrentGroup .
GroupSearchReceives an overview for the articles in range SearchRange in the CurrentGroup .
InterruptInterrupt the current method.
ListGroupsLists all groups on the server.
ListNewGroupsLists all new groups on the server.
LocalizeDateConverts a valid RFC 822 message date to local date and time.
PostArticlePosts the current article and attached file.
ResetReset the component.
ResetHeadersResets all of the article headers.
SetArticleStreamSets the stream to which the article downloaded from the server will be written.
SignSigns the current message.
SignAndEncryptSigns and encrypts the current message.
VerifySignatureVerifies the signature of the current message.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.

ConnectionStatusFired to indicate changes in connection state.
EndTransferFired when the article text completes transferring.
ErrorInformation about errors during data delivery.
GroupListFired while group data transfers (during group listings).
GroupOverviewFired for each line of article overview data (during group overviews).
GroupSearchFired for each line of group search data (during group searches).
HeaderFired for every article header being retrieved during article retrieval.
PITrailTraces the commands sent to the news server, and the respective replies.
SSLServerAuthenticationFired after the server presents its certificate to the client.
SSLStatusShows the progress of the secure connection.
StartTransferFired when the article text starts transferring.
TransferFired while the article text gets transferred (to or from the NewsServer ).

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.

ArticleInfoLimitInstructs component to save the amount of articles specified that are returned by the server when a GroupOverview event is fired.
GroupInfoLimitInstructs component to save the amount of group info objects specified that are returned by the server after a ListGroups call has been made.
HeaderLimitInstructs component to save the amount of headers specified that are returned by the server after a Header event has been fired.
MaxHeaderLengthMaximum length for headers to avoid line folding (default 80).
CloseStreamAfterTransferIf true, the component will close the upload or download stream after the transfer.
ConnectionTimeoutSets a separate timeout value for establishing a connection.
FirewallAutoDetectTells the component whether or not to automatically detect and use firewall system settings, if available.
FirewallHostName or IP address of firewall (optional).
FirewallListenerIf true, the component binds to a SOCKS firewall as a server (IPPort only).
FirewallPasswordPassword to be used if authentication is to be used when connecting through the firewall.
FirewallPortThe TCP port for the FirewallHost;.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
KeepAliveIntervalThe retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.
KeepAliveTimeThe inactivity time in milliseconds before a TCP keep-alive packet is sent.
LingerWhen set to True, connections are terminated gracefully.
LingerTimeTime in seconds to have the connection linger.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe port in the local host where the component binds.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
MaxTransferRateThe transfer rate limit in bytes per second.
ProxyExceptionsListA semicolon separated list of hosts and IPs to bypass when using a proxy.
TCPKeepAliveDetermines whether or not the keep alive socket option is enabled.
TcpNoDelayWhether or not to delay when sending packets.
UseIPv6Whether to use IPv6.
UseNTLMv2Whether to use NTLM V2.
CACertFilePathsThe paths to CA certificate files when using Mono on Unix/Linux.
LogSSLPacketsControls whether SSL packets are logged when using the internal security API.
ReuseSSLSessionDetermines if the SSL session is reused.
SSLCACertsA newline separated list of CA certificate to use during SSL client authentication.
SSLCheckCRLWhether to check the Certificate Revocation List for the server certificate.
SSLCipherStrengthThe minimum cipher strength used for bulk encryption.
SSLEnabledCipherSuitesThe cipher suite to be used in an SSL negotiation.
SSLEnabledProtocolsUsed to enable/disable the supported security protocols.
SSLEnableRenegotiationWhether the renegotiation_info SSL extension is supported.
SSLIncludeCertChainWhether the entire certificate chain is included in the SSLServerAuthentication event.
SSLNegotiatedCipherReturns the negotiated ciphersuite.
SSLNegotiatedCipherStrengthReturns the negotiated ciphersuite strength.
SSLNegotiatedCipherSuiteReturns the negotiated ciphersuite.
SSLNegotiatedKeyExchangeReturns the negotiated key exchange algorithm.
SSLNegotiatedKeyExchangeStrengthReturns the negotiated key exchange algorithm strength.
SSLNegotiatedProtocolReturns the negotiated protocol version.
SSLProviderThe name of the security provider to use.
SSLSecurityFlagsFlags that control certificate verification.
SSLServerCACertsA newline separated list of CA certificate to use during SSL server certificate validation.
TLS12SignatureAlgorithmsDefines the allowed TLS 1.2 signature algorithms when UseInternalSecurityAPI is True.
TLS12SupportedGroupsThe supported groups for ECC.
TLS13KeyShareGroupsThe groups for which to pregenerate key shares.
TLS13SignatureAlgorithmsThe allowed certificate signature algorithms.
TLS13SupportedGroupsThe supported groups for (EC)DHE key exchange.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
BuildInfoInformation about the product's build.
GUIAvailableTells the component whether or not a message loop is available for processing events.
LicenseInfoInformation about the current license.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks S/MIME 2020 .NET Edition - Version 20.0 [Build 8154]