Oracle

weblogic.xml.crypto.wss.api
Interface NonceValidator


public interface NonceValidator


Field Summary
static QName NONCE_FAULTCODE
           
 
Method Summary
 void checkDuplicateNonce(String nonce)
          This method will check the input time is in good format and does not expired.
 void checkNonceAndTime(String nonce, Calendar created)
          This method will check the input time is in good format and does not expired.
 void init(String config, TimestampHandler timeoutHandler)
          initialize the Nonce Validator
 void setExpirationTime(int expirationTime)
          change the expiration time
 

Field Detail

NONCE_FAULTCODE

static final QName NONCE_FAULTCODE
Method Detail

init

void init(String config,
          TimestampHandler timeoutHandler)
initialize the Nonce Validator

Parameters:
config - String of parameters to pass into the NonceValidator for initialization
timeoutHandler - TimestampHandler that is used to check the expiration of the created time

checkNonceAndTime

void checkNonceAndTime(String nonce,
                       Calendar created)
                       throws SOAPFaultException
This method will check the input time is in good format and does not expired. If the input is good, then it will check if there is any duplicated entry in the hash map.

Parameters:
nonce - the input nonce value
created - the input time
Throws:
SOAPFaultException - invalide time format, null input or duplicate entry found

setExpirationTime

void setExpirationTime(int expirationTime)
change the expiration time

Parameters:
expirationTime - time in seconds

checkDuplicateNonce

void checkDuplicateNonce(String nonce)
                         throws SOAPFaultException
This method will check the input time is in good format and does not expired. If the input is good, then it will check if there is any duplicated entry in the hash set.

Parameters:
nonce - the input nonce value
Throws:
SOAPFaultException - invalide time or duplicate entry found

Documentation is available at
http://edocs.bea.com/wls/docs103
Copyright 2008 Oracle