com.esri.arcgis.carto
Interface ISecureLayer2

All Superinterfaces:
Serializable
All Known Implementing Classes:
IMSMapLayer, MapServerLayer, WMSMapLayer

public interface ISecureLayer2
extends Serializable

Provides access to control and test a layer's content related to authentication.

Description

This interface is new at ArcGIS 9.3. It supersedes ISecureLayer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void clearPassword(boolean bForceReconnect)
          Removes the passwords from the layer used to access data, and forces a reconnection to the data.
 boolean isHasAuthentication()
          Indicates if the layer is password protected.
 

Method Detail

clearPassword

void clearPassword(boolean bForceReconnect)
                   throws IOException,
                          AutomationException
Removes the passwords from the layer used to access data, and forces a reconnection to the data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
bForceReconnect - The bForceReconnect (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasAuthentication

boolean isHasAuthentication()
                            throws IOException,
                                   AutomationException
Indicates if the layer is password protected.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The hasAuthentication
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.