Learn R Programming

dataone (version 2.2.2)

echoCredentials: Echo the credentials used to make the call.

Description

This method can be used to verify the client certificate is valid and contains the expected information.

Usage

echoCredentials(x, ...)

# S4 method for CNode echoCredentials(x)

Arguments

x

The coordinating node to send the request to.

...

(Not yet used)

Value

A list containing authentication info.

Details

The authentication credentials contained in the X.509 certificate or authentication token are send with the request.

Examples

Run this code
# NOT RUN {
cn <- CNode("STAGING")
creds <- echoCredentials(cn)
print(creds$person$subject)
# }

Run the code above in your browser using DataLab