XCC/J 4.1-11

com.marklogic.xcc
Interface UserCredentials


public interface UserCredentials

This interface encapsulates a user identity. It is intended primarily for internal use.


Method Summary
 String getUserName()
          The user name associated with this credential object.
 String toHttpBasicAuth()
          Returns an HTTP basic authentication string.
 String toHttpDigestAuth(String method, String uri, String challengeHeader)
          Returns an HTTP digest authentication string.
 

Method Detail

getUserName

String getUserName()
The user name associated with this credential object.

Returns:
The user name as a String.


toHttpBasicAuth

String toHttpBasicAuth()
Returns an HTTP basic authentication string.

Returns:
An HTTP basic authentication header value.


toHttpDigestAuth

String toHttpDigestAuth(String method,
                        String uri,
                        String challengeHeader)
Returns an HTTP digest authentication string.

Returns:
An HTTP digest authentication header value.


XCC/J 4.1-11

Copyright © 2003-2011 MarkLogic Corporation, All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com