Example usage for javax.xml.registry Connection setCredentials

List of usage examples for javax.xml.registry Connection setCredentials

Introduction

In this page you can find the example usage for javax.xml.registry Connection setCredentials.

Prototype

public void setCredentials(Set credentials) throws JAXRException;

Source Link

Document

Sets the Credentials associated with this client.

Usage

From source file:it.cnr.icar.eric.client.ui.thin.security.SecurityUtil.java

/** Wrapper for ConnectionImpl.setCredentials() that ignores null or
 * empty credential sets./*from   ww w  . jav  a2s.  c om*/
 */
public void setCredentials(Set<Object> credentials, Connection connection) throws JAXRException {
    if ((credentials != null) && !credentials.isEmpty()) {
        connection.setCredentials(credentials);
    }
}