Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weblogic.security.spi
Interface ProviderChallengeContext

    public interface ProviderChallengeContext

The `ProviderChallengeContext` interface allows a Challenge Identity Assertion providers to return an object that contains state and is used for subsequent steps in a multi-step challenge/response process. This allows an identity asserter to support authentication protocols such as Microsoft's Windows NT Challenge/Response (NTLM), Simple and Protected GSS-API Negotiation Mechanism (SPNEGO), and other challenge/response authentication mechanisms.

Method Summary
`CallbackHandler` | `getCallbackHandler()` Returns the callback handler for the challenge identity assertion.
`Object` | `getChallengeToken()` Returns the challenge token for the challenge identity assertion.
`boolean` | `hasChallengeIdentityCompleted()` Returns whether the challenge identity assertion has completed.

Method Detail

### hasChallengeIdentityCompleted

    boolean hasChallengeIdentityCompleted()

  Returns whether the challenge identity assertion has completed.

  Returns:
    `true` if the challenge identity assertion has completed, `false` if not. If `true`, the caller should use the `getCallbackHandler()` method. If `false`, then the caller should use the `getChallengeToken()` method.

### getCallbackHandler

    CallbackHandler getCallbackHandler()

  Returns the callback handler for the challenge identity assertion. This method should only be called when the `hasChallengeIdentityCompleted()` method returns true. If called incorrectly, then an `IllegalStateException` runtime exception will be thrown.

  Returns:
    the `CallbackHandler` related to the identity, or `null` to signify the anonymous user

### getChallengeToken

    Object getChallengeToken()

  Returns the challenge token for the challenge identity assertion. This method should only be called when the `hasChallengeIdentityCompleted()` method returns `false`. If called incorrectly, then an `IllegalStateException` runtime exception will be thrown.

  Returns:
    the challenge token for the challenge Identity Assertion provider

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD