---
product: Chilkat
product_version: 11.7.0
language: wc
language_label: Unicode C
class: OAuth1
license: bundle
deprecated: false
reference_html: https://www.chilkatsoft.com/refdoc/wc_CkOAuth1WRef.html
---
# Chilkat OAuth1 — Unicode C — v11.7.0

> Chilkat 11.7.0 · language=wc · class=OAuth1
> Other versions: replace `11.7.0` in this URL. Other languages: `https://www.chilkatsoft.com/ai-docs/v/11.7.0/<lang>/classes/OAuth1.md`.
> Language-wide rules (install, unlock, error model, strings/bytes): `https://www.chilkatsoft.com/ai-docs/v/11.7.0/wc/guide.md`.

## Purpose

**Generate OAuth 1.0 signatures, authorization headers, and signed request URLs.**

`Chilkat.OAuth1` builds the signed OAuth 1.0 authentication data needed for APIs that still require OAuth 1.0 request signing. It can generate the signature base string, HMAC key, signature, URL-encoded signature, normalized signed parameter string, Authorization header, and generated URL containing OAuth query parameters. It supports consumer credentials, access tokens, nonce and timestamp generation, extra signed parameters, optional realm handling, HMAC-SHA1, HMAC-SHA256, RSA-SHA1, and RSA-SHA256 signing.

**OAuth 1.0 signing**

Generate the OAuth 1.0 signature and related authentication values from the HTTP method, request URL, credentials, token, nonce, and timestamp.

**Authorization header**

Produce the value to send in the HTTP `Authorization` header when OAuth parameters should be supplied as a header.

**Signed URL output**

Generate a URL that includes the OAuth 1.0 query parameters when the API expects authentication data in the request URL.

**Extra signed parameters**

Add or remove request-specific name/value parameters that must be included in the normalized parameter string and signature calculation.

**HMAC or RSA signatures**

Sign with `HMAC-SHA1`, `HMAC-SHA256`, `RSA-SHA1`, or `RSA-SHA256`, with RSA private keys supplied by `SetRsaKey`.

**Debuggable signing details**

Inspect the exact `BaseString`, `HmacKey`, `QueryString`, `Signature`, and `EncodedSignature` used to build the OAuth request.

**Common pattern:** Set `OauthMethod` and `OauthUrl`, provide the consumer key and secret, set any token and token secret, generate or assign `Nonce` and `Timestamp`, add request parameters with `AddParam`, then call `Generate`. Use `AuthorizationHeader` when sending OAuth data in an HTTP header, or `GeneratedUrl` when the signed OAuth parameters should be placed in the URL.

**URL guidance:** Set `OauthUrl` to the base request URL without query parameters. Add query parameters separately with `AddParam` so they are included correctly in the OAuth 1.0 signature calculation.

## Object creation, unlocking and error handling

**Create/Dispose**

```c
HCkOAuth1W instance = CkOAuth1W_Create();
// ...
CkOAuth1W_Dispose(instance);
```

`HCkOAuth1W CkOAuth1W_Create(void);`

Creates an instance of the HCkOAuth1W object and returns a handle ("void \*" pointer). The handle is passed in the 1st argument for the functions listed on this page.

`void CkOAuth1W_Dispose(HCkOAuth1W handle);`

Objects created by calling CkOAuth1W_Create must be freed by calling this method. A memory leak occurs if a handle is not disposed by calling this function. Also, any handle returned by a Chilkat "C" function must also be freed by the application by calling the appropriate Dispose method, such as CkOAuth1W_Dispose.

Call `Global.UnlockBundle` once at the start of the program, before using this or any other Chilkat class. Any string unlocks a fully functional 30-day trial; a purchased unlock code is used in production. See `guide.md` for the exact code in Unicode C.

## Members common to every Chilkat class

Documented once per language in `common-members.md`; listed here so this page is self-contained.

| Property | Signature | Access | Meaning |
|---|---|---|---|
| `DebugLogFilePath` | `void CkOAuth1W_getDebugLogFilePath(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putDebugLogFilePath(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_debugLogFilePath(HCkOAuth1W cHandle);` | read/write | If set to a file path, this property logs the LastErrorText of each Chilkat method or property call to the specified file. |
| `LastErrorHtml` | `void CkOAuth1W_getLastErrorHtml(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_lastErrorHtml(HCkOAuth1W cHandle);` | read-only | Provides HTML-formatted information about the last called method or property. |
| `LastErrorText` | `void CkOAuth1W_getLastErrorText(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_lastErrorText(HCkOAuth1W cHandle);` | read-only | Provides plain text information about the last called method or property. |
| `LastErrorXml` | `void CkOAuth1W_getLastErrorXml(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_lastErrorXml(HCkOAuth1W cHandle);` | read-only | Provides XML-formatted information about the last called method or property. |
| `LastMethodSuccess` | `BOOL CkOAuth1W_getLastMethodSuccess(HCkOAuth1W cHandle); void CkOAuth1W_putLastMethodSuccess(HCkOAuth1W cHandle, BOOL newVal);` | read/write | Indicates the success or failure of the most recent method call: `TRUE` means success, `FALSE` means failure. |
| `VerboseLogging` | `BOOL CkOAuth1W_getVerboseLogging(HCkOAuth1W cHandle); void CkOAuth1W_putVerboseLogging(HCkOAuth1W cHandle, BOOL newVal);` | read/write | If set to `TRUE`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may contain more verbose information. |
| `Version` | `void CkOAuth1W_getVersion(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_version(HCkOAuth1W cHandle);` | read-only | Version of the component/library, such as "10.1.0" |

## Member index

| Member | Kind | Signature |
|---|---|---|
| `AuthorizationHeader` | property, read-only | `void CkOAuth1W_getAuthorizationHeader(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_authorizationHeader(HCkOAuth1W cHandle);` |
| `BaseString` | property, read-only | `void CkOAuth1W_getBaseString(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_baseString(HCkOAuth1W cHandle);` |
| `ConsumerKey` | property, read/write | `void CkOAuth1W_getConsumerKey(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putConsumerKey(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_consumerKey(HCkOAuth1W cHandle);` |
| `ConsumerSecret` | property, read/write | `void CkOAuth1W_getConsumerSecret(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putConsumerSecret(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_consumerSecret(HCkOAuth1W cHandle);` |
| `EncodedSignature` | property, read-only | `void CkOAuth1W_getEncodedSignature(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_encodedSignature(HCkOAuth1W cHandle);` |
| `GeneratedUrl` | property, read-only | `void CkOAuth1W_getGeneratedUrl(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_generatedUrl(HCkOAuth1W cHandle);` |
| `HmacKey` | property, read-only | `void CkOAuth1W_getHmacKey(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_hmacKey(HCkOAuth1W cHandle);` |
| `Nonce` | property, read/write | `void CkOAuth1W_getNonce(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putNonce(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_nonce(HCkOAuth1W cHandle);` |
| `OauthMethod` | property, read/write | `void CkOAuth1W_getOauthMethod(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putOauthMethod(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_oauthMethod(HCkOAuth1W cHandle);` |
| `OauthUrl` | property, read/write | `void CkOAuth1W_getOauthUrl(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putOauthUrl(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_oauthUrl(HCkOAuth1W cHandle);` |
| `OauthVersion` | property, read/write | `void CkOAuth1W_getOauthVersion(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putOauthVersion(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_oauthVersion(HCkOAuth1W cHandle);` |
| `QueryString` | property, read-only | `void CkOAuth1W_getQueryString(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_queryString(HCkOAuth1W cHandle);` |
| `Realm` | property, read/write | `void CkOAuth1W_getRealm(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putRealm(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_realm(HCkOAuth1W cHandle);` |
| `Signature` | property, read-only | `void CkOAuth1W_getSignature(HCkOAuth1W cHandle, HCkString retval); const wchar_t *CkOAuth1W_signature(HCkOAuth1W cHandle);` |
| `SignatureMethod` | property, read/write | `void CkOAuth1W_getSignatureMethod(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putSignatureMethod(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_signatureMethod(HCkOAuth1W cHandle);` |
| `Timestamp` | property, read/write | `void CkOAuth1W_getTimestamp(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putTimestamp(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_timestamp(HCkOAuth1W cHandle);` |
| `Token` | property, read/write | `void CkOAuth1W_getToken(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putToken(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_token(HCkOAuth1W cHandle);` |
| `TokenSecret` | property, read/write | `void CkOAuth1W_getTokenSecret(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putTokenSecret(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_tokenSecret(HCkOAuth1W cHandle);` |
| `UncommonOptions` | property, read/write | `void CkOAuth1W_getUncommonOptions(HCkOAuth1W cHandle, HCkString retval); void CkOAuth1W_putUncommonOptions(HCkOAuth1W cHandle, const wchar_t *newVal); const wchar_t *CkOAuth1W_uncommonOptions(HCkOAuth1W cHandle);` |
| `AddParam` | method | `BOOL CkOAuth1W_AddParam(HCkOAuth1W cHandle, const wchar_t *name, const wchar_t *value);` |
| `Generate` | method | `BOOL CkOAuth1W_Generate(HCkOAuth1W cHandle);` |
| `GenNonce` | method | `BOOL CkOAuth1W_GenNonce(HCkOAuth1W cHandle, int numBytes);` |
| `GenTimestamp` | method | `BOOL CkOAuth1W_GenTimestamp(HCkOAuth1W cHandle);` |
| `RemoveParam` | method | `BOOL CkOAuth1W_RemoveParam(HCkOAuth1W cHandle, const wchar_t *name);` |
| `SetRsaKey` | method | `BOOL CkOAuth1W_SetRsaKey(HCkOAuth1W cHandle, HCkPrivateKeyW privKey);` |

## Properties

### OAuth1.AuthorizationHeader

`Chilkat 11.7.0 · wc · OAuth1 · AuthorizationHeader · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getAuthorizationHeader(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_authorizationHeader(HCkOAuth1W cHandle);
```

The authorization header. This is what would be included in the Authorization HTTP request header if it is going to be used as the means for providing the OAuth1 authorization information.

### OAuth1.BaseString

`Chilkat 11.7.0 · wc · OAuth1 · BaseString · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getBaseString(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_baseString(HCkOAuth1W cHandle);
```

This is the exact string that was signed. For example, if the signature method is HMAC-SHA1, the BaseString is the exact string that passed to the HMAC-SHA1. An application does not set the BaseString property. The BaseString is exposed as a property to allow for debugging and to see the exact string that is signed.

### OAuth1.ConsumerKey

`Chilkat 11.7.0 · wc · OAuth1 · ConsumerKey · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getConsumerKey(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putConsumerKey(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_consumerKey(HCkOAuth1W cHandle);
```

The consumer key.

### OAuth1.ConsumerSecret

`Chilkat 11.7.0 · wc · OAuth1 · ConsumerSecret · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getConsumerSecret(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putConsumerSecret(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_consumerSecret(HCkOAuth1W cHandle);
```

The consumer secret.

### OAuth1.EncodedSignature

`Chilkat 11.7.0 · wc · OAuth1 · EncodedSignature · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getEncodedSignature(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_encodedSignature(HCkOAuth1W cHandle);
```

The URL encoded representation of the Signature property

### OAuth1.GeneratedUrl

`Chilkat 11.7.0 · wc · OAuth1 · GeneratedUrl · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getGeneratedUrl(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_generatedUrl(HCkOAuth1W cHandle);
```

The URL that includes the OAuth1 query params.

### OAuth1.HmacKey

`Chilkat 11.7.0 · wc · OAuth1 · HmacKey · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getHmacKey(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_hmacKey(HCkOAuth1W cHandle);
```

The exact HMAC key used to sign the BaseString. An application does not directly set the HmacKey. The HmacKey property is read-only and is provided for debugging to see the exact HMAC key used to sign the BaseString. The HMAC key is composed from the consumer secret (if it exists) and the token secret (if it exists).

### OAuth1.Nonce

`Chilkat 11.7.0 · wc · OAuth1 · Nonce · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getNonce(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putNonce(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_nonce(HCkOAuth1W cHandle);
```

The nonce.

### OAuth1.OauthMethod

`Chilkat 11.7.0 · wc · OAuth1 · OauthMethod · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getOauthMethod(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putOauthMethod(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_oauthMethod(HCkOAuth1W cHandle);
```

The HTTP method, such as `GET`, `POST`, `PUT`, `DELETE`, or `HEAD`. Defaults to `GET`.

### OAuth1.OauthUrl

`Chilkat 11.7.0 · wc · OAuth1 · OauthUrl · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getOauthUrl(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putOauthUrl(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_oauthUrl(HCkOAuth1W cHandle);
```

The OAuth URL, such as `http://echo.lab.madgex.com/echo.ashx`. See http://bettiolo.github.io/oauth-reference-page/ to compare Chilkat results with another tool's results.

**Note:** The OAuthUrl should not include query parameters. For example, do not set the OAuthUrl equal to

```
https://rest.sandbox.netsuite.com/app/site/hosting/restlet.nl?script=165&deploy=1
```

Instead, set OAuthUrl equal to

```
https://rest.sandbox.netsuite.com/app/site/hosting/restlet.nl
```

and then subsequently call AddParam for each query parameter.

### OAuth1.OauthVersion

`Chilkat 11.7.0 · wc · OAuth1 · OauthVersion · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getOauthVersion(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putOauthVersion(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_oauthVersion(HCkOAuth1W cHandle);
```

The oauth_version. Defaults to `1.0`. May be set to the empty string to exclude.

### OAuth1.QueryString

`Chilkat 11.7.0 · wc · OAuth1 · QueryString · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getQueryString(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_queryString(HCkOAuth1W cHandle);
```

Contains the normalized set of request parameters that are signed. This is a read-only property made available for debugging purposes.

### OAuth1.Realm

`Chilkat 11.7.0 · wc · OAuth1 · Realm · property · read/write · since 9.5.0.70`

```c
void CkOAuth1W_getRealm(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putRealm(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_realm(HCkOAuth1W cHandle);
```

The realm (optional).

### OAuth1.Signature

`Chilkat 11.7.0 · wc · OAuth1 · Signature · property · read-only · since 9.5.0.53`

```c
void CkOAuth1W_getSignature(HCkOAuth1W cHandle, HCkString retval);
const wchar_t *CkOAuth1W_signature(HCkOAuth1W cHandle);
```

The generated base64 signature.

### OAuth1.SignatureMethod

`Chilkat 11.7.0 · wc · OAuth1 · SignatureMethod · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getSignatureMethod(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putSignatureMethod(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_signatureMethod(HCkOAuth1W cHandle);
```

The signature method. Defaults to `HMAC-SHA1`. Other possible choices are `HMAC-SHA256`, `RSA-SHA1`, and `RSA-SHA256` (or the equivalent `RSA-SHA2`).

### OAuth1.Timestamp

`Chilkat 11.7.0 · wc · OAuth1 · Timestamp · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getTimestamp(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putTimestamp(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_timestamp(HCkOAuth1W cHandle);
```

The timestamp, such as `1441632569`.

### OAuth1.Token

`Chilkat 11.7.0 · wc · OAuth1 · Token · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getToken(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putToken(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_token(HCkOAuth1W cHandle);
```

The token.

### OAuth1.TokenSecret

`Chilkat 11.7.0 · wc · OAuth1 · TokenSecret · property · read/write · since 9.5.0.53`

```c
void CkOAuth1W_getTokenSecret(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putTokenSecret(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_tokenSecret(HCkOAuth1W cHandle);
```

The token secret

### OAuth1.UncommonOptions

`Chilkat 11.7.0 · wc · OAuth1 · UncommonOptions · property · read/write · since 9.5.0.85`

```c
void CkOAuth1W_getUncommonOptions(HCkOAuth1W cHandle, HCkString retval);
void CkOAuth1W_putUncommonOptions(HCkOAuth1W cHandle, const wchar_t *newVal);
const wchar_t *CkOAuth1W_uncommonOptions(HCkOAuth1W cHandle);
```

This is a catch-all property to be used for uncommon needs. This property defaults to the empty string and should typically remain empty.

Can be set to a list of the following comma separated keywords:

- `INCLUDE_REALM` - Introduced in v9.5.0.85. Include the Realm in the signature calculation and outputs.

## Methods

### OAuth1.AddParam

`Chilkat 11.7.0 · wc · OAuth1 · AddParam · method · since 9.5.0.53`

```c
BOOL CkOAuth1W_AddParam(HCkOAuth1W cHandle, const wchar_t *name, const wchar_t *value);
```

Adds an extra name/value parameter to the OAuth1 signature.

Returns TRUE for success, FALSE for failure.

### OAuth1.Generate

`Chilkat 11.7.0 · wc · OAuth1 · Generate · method · since 9.5.0.53`

```c
BOOL CkOAuth1W_Generate(HCkOAuth1W cHandle);
```

Generate the signature based on the property settings. Input properties are OauthVersion, OauthMethod, Url, ConsumerKey, ConsumerSecret, Token, TokenSecret, Nonce, and Timestamp. Properties set by this method include: BaseString, Signature, HmacKey, EncodedSignature, QueryString, GeneratedUrl, andAuthorizationHeader.

Returns TRUE for success, FALSE for failure.

### OAuth1.GenNonce

`Chilkat 11.7.0 · wc · OAuth1 · GenNonce · method · since 9.5.0.55`

```c
BOOL CkOAuth1W_GenNonce(HCkOAuth1W cHandle, int numBytes);
```

Generates a random nonce `numBytes` in length and sets the Nonce property to the hex encoded value.

Returns TRUE for success, FALSE for failure.

### OAuth1.GenTimestamp

`Chilkat 11.7.0 · wc · OAuth1 · GenTimestamp · method · since 9.5.0.55`

```c
BOOL CkOAuth1W_GenTimestamp(HCkOAuth1W cHandle);
```

Sets the Timestamp property to the current date/time.

Returns TRUE for success, FALSE for failure.

### OAuth1.RemoveParam

`Chilkat 11.7.0 · wc · OAuth1 · RemoveParam · method · since 9.5.0.53`

```c
BOOL CkOAuth1W_RemoveParam(HCkOAuth1W cHandle, const wchar_t *name);
```

Removes a name/value parameter from the OAuth1 signature.

Returns TRUE for success, FALSE for failure.

### OAuth1.SetRsaKey

`Chilkat 11.7.0 · wc · OAuth1 · SetRsaKey · method · since 9.5.0.64`

```c
BOOL CkOAuth1W_SetRsaKey(HCkOAuth1W cHandle, HCkPrivateKeyW privKey);
```

Sets the RSA key to be used when the SignatureMethod is set to `RSA-SHA1` or `RSA-SHA2`.

Returns TRUE for success, FALSE for failure.

## Related classes

[`PrivateKey`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/wc/classes/PrivateKey.md)

