get_native


Description:

public void* get_native (CredentialsType native_type)

Gets a pointer to native credentials of type native_type from this.

It is a programming error (which will cause an warning to be logged) to use this method if there is no Credentials support for the OS or if native_type isn't supported by the OS.

Parameters:

this

A Credentials.

native_type

The type of native credentials to get.

Returns:

The pointer to native credentials or null if the operation there is no Credentials support for the OS or if native_type isn't supported by the OS. Do not free the returned data, it is owned by this.