'Check if the connection is verified/authentication in the given direction.
@type direction: L{str}
@param direction: The direction: one of \'out\', \'in\', or \'both\'.
@rtype: L{bool}
@return: C{True} if it is verified.'

def isVerified(self, direction='out'):

    if (direction == 'out'):
        return (self.currentEncryptions.outMACType != 'none')
    elif (direction == 'in'):
        return (self.currentEncryptions.inMACType != 'none')
    elif (direction == 'both'):
        return (self.isVerified('in') and self.isVerified('out'))
    else:
        raise TypeError('direction    must    be    "out",    "in",    or    "both"')
