dataone (version 2.2.1)

isAuthValid: Verify authentication for a member node.

Description

The currently used DataONE client authentication method (either tokens or X.509 certificates) is checked and verified for the specified node (either CN or MN). If an authentication token is available via the R options facility, it will be used i.e. available via getOption("dataone_token"). However, authentication tokens can only be used for DataONE v2 or higher nodes. X.509 certificates can be used with DataONE v1 or higher nodes. See the "dataone" vignette "dataone-overview" for more information on authentication.

Usage

isAuthValid(.Object, ...)

# S4 method for AuthenticationManager isAuthValid(.Object, node)

Arguments

.Object

An AuthenticationManager instance

...

additional parameters

node

The node object (MNode or CNode) that authentication is being checked for.

Value

A logical value: TRUE if authentication is valid, false if not.