'SecurityOptions.isTypeAllowed(typeName) -> boolean
Returns 1 if the given type is allowed, 0 otherwise.'

def isTypeAllowed(self, typeName):

    if (not isinstance(typeName, bytes)):
        typeName = typeName.encode('utf-8')
    return ((typeName in self.allowedTypes) or ('.' in typeName))
