         hexDerived     = Forge.util.bytesToHex(derived)
         return hexDerived
 
-    initializeKeypair : ({ password }, authCallback) ->
+    initializeKeypair : ({ password }, authCallback = -> ) ->
       { publicKey, privateKey, keypair } = {}
 
       Promise.resolve()

      @directoryApi    = new DirectoryApi()
      @rsaKeyGenerator = new RsaKeyGenerator()

    deriveCredential : ({ username, password, realm }, authCallback) ->
      { iterations, keySize, passwordCrypto } = {}

      Promise.resolve()

        log.error(e)
        log.error('keypair generation failed!', e)

    deriveKeypair : ({ password }, authCallback = -> ) ->
      Promise.resolve()
      .then =>
        authCallback(AuthenticationStage.DERIVE_KEYPAIR)
