evaluateAuth: Evaluate DataONE authentication.

evaluateAuthR Documentation

Evaluate DataONE authentication.

Description

A valid DataONE authentication method is looked for and all authentication information is retrieved from it.

Usage

evaluateAuth(.Object, ...)

## S4 method for signature 'AuthenticationManager'
evaluateAuth(.Object, node)

Arguments

.Object

an Authentication Object.

...

additional parameters

node

A D1Node object.

Details

If the node specified in the 'node' parameter is a DataONE v2 node or higher, then an authentication token is checked if one exists. If it is readable and not expired, then information for the token is returned. If a valid token does not exist, then the X.509 certificate is checked, if it exists. If it is valid then information is returned for the certificate.

Value

A table containing authentication information.


dataone documentation built on June 11, 2022, 1:06 a.m.