### Hierarchy

- SecureHandler

### Implements

- ICommandHandler

## Index

### Properties

- params

### Methods

- handlePromptForAuthToken
- process

## Properties

### Private params

params: IHandlerParameters

- Defined in @zowe/imperative/src/imperative/src/config/cmd/secure/secure.handler.ts:33

The parameters object passed to the command handler.

## Methods

### Private handlePromptForAuthToken

- handlePromptForAuthToken(config: Config, propPath: string): Promise<string | undefined>

- - Defined in @zowe/imperative/src/imperative/src/config/cmd/secure/secure.handler.ts:140

  Checks if authentication service is associated with an auth token property. If an auth service is found, we log in to it obtain the token instead of prompting for the value.

  #### Parameters

  - ##### config: Config

    Team config class from which the property was loaded

  - ##### propPath: string

    JSON property path of the auth token

  #### Returns Promise<string | undefined>

  Token value, or undefined if none was obtained

### process

- process(params: IHandlerParameters): Promise<void>

- Implementation of ICommandHandler.process

  - Defined in @zowe/imperative/src/imperative/src/config/cmd/secure/secure.handler.ts:41

  Process the command and input.

  throws

    {ImperativeError}

  #### Parameters

  - ##### params: IHandlerParameters

    Parameters supplied by yargs

  #### Returns Promise<void>

Generated using TypeDoc