Oracle Entitlements Server Provider SSPI API Reference

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 multistep challenge/response process. This allows an identity asserter to support authentication protocols such as Microsoft's NTLM, SPNEGO, and other challenge/response authentication mechanisms.

Author:
Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.

Method Summary
 javax.security.auth.callback.CallbackHandler getCallbackHandler()
          Return the callback handler for the challenge identity assertion.
 java.lang.Object getChallengeToken()
          Return the challenge token for the challenge identity assertion.
 boolean hasChallengeIdentityCompleted()
          Return whether the challenge identity assertion has completed.
 

Method Detail

hasChallengeIdentityCompleted

public boolean hasChallengeIdentityCompleted()
Return whether the challenge identity assertion has completed.

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

getCallbackHandler

public javax.security.auth.callback.CallbackHandler getCallbackHandler()
Return 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:
CallbackHandle related to the identity, or null to signify the anonymous user.

getChallengeToken

public java.lang.Object getChallengeToken()
Return 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:
Object the Identity Assertion providers challenge token