Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.security.sasl
Interface SaslClientExt  view SaslClientExt download SaslClientExt.java

All Superinterfaces:
SaslClient

public interface SaslClientExt
extends SaslClient

The visible additional methods for a SASL client to support the SM2 protocol.

Since:
draft-naffah-cat-sasl-sm2-00
Version:
$Revision: 1.2 $

Method Summary
 byte[] evaluateEvidence(byte[] peerEvidence)
          Given the SASL mechanism peer's evidence, which may be null, this method is for SASL mechanisms capable of using the designated evidence to update or recycle their cryptographic data, so security services can still be provided, in a secure fashion, without the need to go through the authentication phase again.
 java.security.spec.AlgorithmParameterSpec getSaslSecurityContext()
          Retrieves the SASL Security Context of this SASL mechanism object.
 void setSaslSecurityContext(java.security.spec.AlgorithmParameterSpec ctx)
          Sets the SASL Security Context of this SASL mechanism object to the designated value.
 
Methods inherited from interface javax.security.sasl.SaslClient
dispose, evaluateChallenge, getMechanismName, getNegotiatedProperty, hasInitialResponse, isComplete, unwrap, wrap
 

Method Detail

getSaslSecurityContext

public java.security.spec.AlgorithmParameterSpec getSaslSecurityContext()
                                                                 throws SaslException
Retrieves the SASL Security Context of this SASL mechanism object. This method can be called only after the authentication exchange has completed (i.e., when SaslClient.isComplete() 55 returns true); otherwise, a SaslException is thrown.


setSaslSecurityContext

public void setSaslSecurityContext(java.security.spec.AlgorithmParameterSpec ctx)
                            throws SaslException
Sets the SASL Security Context of this SASL mechanism object to the designated value.


evaluateEvidence

public byte[] evaluateEvidence(byte[] peerEvidence)
                        throws SaslException
Given the SASL mechanism peer's evidence, which may be null, this method is for SASL mechanisms capable of using the designated evidence to update or recycle their cryptographic data, so security services can still be provided, in a secure fashion, without the need to go through the authentication phase again.